ndarray
autograd
loss
Symbol.
__rsub__
x.__rsub__(y) <=> y-x
Only NDArray is supported for now.
Example
>>> x = mx.nd.ones((2,3))*3 >>> y = mx.nd.ones((2,3)) >>> x.__rsub__(y).asnumpy() array([[-2., -2., -2.], [-2., -2., -2.]], dtype=float32)