We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Here is the code that shows that all_of_type changes the dimension of sos_f32 below:
all_of_type
sos_f32
>>> from scipy._lib.uarray import all_of_type >>> import numpy as np >>> @all_of_type(np.ndarray) ... def f(p): ... return p ... >>> sos_f32 = np.array([[4., 5., 6., 1., 2., 3.]], dtype=np.float32) >>> sos_f32 array([[4., 5., 6., 1., 2., 3.]], dtype=float32) >>> sos_f32.shape (1, 6) >>> f(sos_f32) (<Dispatchable: type=<class 'numpy.ndarray'>, value=array([4., 5., 6., 1., 2., 3.], dtype=float32)>,) >>> f(sos_f32)[0].value.shape (6,)
I was expecting sos_f32 and f(sos_f32)[0].value to have same dimensions. Is this a bug?
f(sos_f32)[0].value
Original comment: rgommers/scipy#101 (comment)
The text was updated successfully, but these errors were encountered:
Seems like Ralf already answered the original question in the thread, but I'll add an assert and some tests as he suggests.
Sorry, something went wrong.
hameerabbasi
No branches or pull requests
Here is the code that shows that
all_of_type
changes the dimension ofsos_f32
below:I was expecting
sos_f32
andf(sos_f32)[0].value
to have same dimensions. Is this a bug?Original comment: rgommers/scipy#101 (comment)
The text was updated successfully, but these errors were encountered: