You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 15, 2019. It is now read-only.
I was using OnlyNumpyPolicy in older version of minpy. After updating minpy, I could not use OnlyNumpyPolicy anymore. As a result, basic operations such as
import minpy.numpy as np
a = np.sqrt(2)
Causes errror:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/lixiangci/minpy/minpy/primitive.py", line 134, in __call__
return self.call(args, kwargs)
File "/Users/lixiangci/minpy/minpy/primitive.py", line 221, in call
result_value = self._func(*arg_values, **kwarg_values)
File "/Users/lixiangci/mxnet/python/mxnet/_ctypes/ndarray.py", line 104, in generic_ndarray_function
raise ValueError("Too many positional arguments")
ValueError: Too many positional arguments
Personally I suggest developers to enable OnlyNumpyPolicy again to solve this problem.
Thank you.
The text was updated successfully, but these errors were encountered:
@jermainewang Many functions in minpy don't accept scalar and list arguments, however numpy does. I think minpy should be consistent with that in numpy.
I was using
OnlyNumpyPolicy
in older version of minpy. After updating minpy, I could not useOnlyNumpyPolicy
anymore. As a result, basic operations such asCauses errror:
Personally I suggest developers to enable
OnlyNumpyPolicy
again to solve this problem.Thank you.
The text was updated successfully, but these errors were encountered: