dmlc / minpy

NumPy interface with mixed backend execution
https://minpy.readthedocs.io/en/latest/
Other
1.11k stars 112 forks source link

minpy.numpy.array dose not support len() #187

Open MillPopulus opened 5 years ago

MillPopulus commented 5 years ago
import minpy.numpy as np
# import numpy as np
len(np.array([1,2,3]))

results in

TypeError                                 Traceback (most recent call last)
<ipython-input-39-32f01e8c945b> in <module>()
      1 import minpy.numpy as np
      2 # import numpy as np
----> 3 len(np.array([1,2,3]))

TypeError: object of type 'Array' has no len()

I use minpy installed by pip3