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 Nov 17, 2023. It is now read-only.
However, this will still be problematic, because the interger_types do not include the mxnet.numpy integers, i.e the following script will still raise the error:
I'll partially solve the problem for the split/hsplit/vsplit operators by using integer_types in #16621. However, we need a way to support mxnet numpy scalars.
After discussion with @junrushao1994, we can try to convert the input to python int first. Also, in JAX and numpy, it supports float32 inputs and automatically detects the float case.
Error:
The reason is that we are testing against the python int here:
https://github.com/apache/incubator-mxnet/blob/4f14bf4fe51b586f86a1e7bd38b8282997e6ffbb/python/mxnet/ndarray/numpy/_op.py#L2733
One way to solve the problem is to see if the indices_or_sections belongs to integer_types:
https://github.com/apache/incubator-mxnet/blob/4f14bf4fe51b586f86a1e7bd38b8282997e6ffbb/python/mxnet/base.py#L49
However, this will still be problematic, because the interger_types do not include the
mxnet.numpy
integers, i.e the following script will still raise the error:We will need some one to look at the problem @reminisce @haojin2 .
The text was updated successfully, but these errors were encountered: