wkcn commented on issue #14253: [RFC] Introducing NumPy-compatible coding experience into MXNet URL: https://github.com/apache/incubator-mxnet/issues/14253#issuecomment-525985724 Hi @reminisce , I try to pass a numpy-compatible array into a legacy operator, and it raises this error. ```python >>> import mxnet.numpy as np >>> import mxnet as mx >>> import mxnet.numpy as np >>> a = np.array([1,2]) >>> b = np.array([3,4]) >>> mx.nd.broadcast_add(a,b) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "<string>", line 56, in broadcast_add File "/home/wkcn/proj/mxnet/python/mxnet/ndarray/register.py", line 99, in _verify_all_legacy_ndarrays .format(op_name, func_name)) TypeError: Operator `broadcast_add` registered in backend is known as `broadcast_add` in Python. This is a legacy operator which can only accept legacy ndarrays, while received an MXNet numpy ndarray. Please call `as_nd_ndarray()` upon the numpy ndarray to convert it to a legacy ndarray, and then feed the converted array to this operator. ``` I hope that the legacy operator is the subset of
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
