Looking around a bit, I found that you can do this:
x = mx.sym.Variable('x') y = mx.sym.Variable('y') z = x + y executor = z.bind(mx.cpu(), {'x': mx.nd.array([100,200]), 'y':mx.nd.array([300,400])}) output = executor.forward()
will give you an "exit":
[<NDArray 2 @cpu(0)>]
To print the actual digital result:
print output[0].asnumpy() array([ 400., 600.], dtype=float32)
source share