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.
when the size of data in the split axis is 1, it will return incorrect result. For example,
`In [1]: import mxnet as mx
In [2]: data = mx.nd.ones((2,3,4))
In [3]: data_s = mx.nd.split(data, axis=1, num_outputs=data.shape[1], squeeze_axis=False)
In [4]: len(data_s)
Out[4]: 3
In [5]: data_s[0].shape
Out[5]: (2L, 1L, 4L)
**but, when splitting x along axis=1 below, it will return 2 NDArray.**
In [6]: x = data_s[0] #with shape (2L, 1L, 4L)
In [8]: x_s = mx.nd.split(x, axis=1, num_outputs=x.shape[1], squeeze_axis=False)
In [9]: len(x_s)
Out[9]: 2
In [10]: x_s[0].shape
Out[10]: (1L, 4L)
`
Is it a bug ?
The text was updated successfully, but these errors were encountered:
As I split along the axis=1, and x has the shape (2,1,4), so normally, it will return a list containing only one ndarray with the same shape:(2,1,4), rather than two ,with each has the shape (1, 4)
mxnet 0.12.0
when the size of data in the split axis is 1, it will return incorrect result. For example,
Is it a bug ?
The text was updated successfully, but these errors were encountered: