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? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
x = dpnp.asarray([1.0, 2.0, 3.0]) y = 1.0/x
y is numpy array vs. dpnp array
y
Complete reproducer is here https://gist.github.com/samaid/b4510dbcd7285ceed36b42dd96acf30c
The text was updated successfully, but these errors were encountered:
Problem in type operator:
In: type(dpnp.float32(1.0)) Out: <class 'numpy.float32'> In: dpnp.float32(1.0) / x Out: array([array(1.), array(0.5), array(0.33333333)], dtype=object)
Sorry, something went wrong.
To avoid this problem you can use:
y = np.asarray(1.0, dtype=np.float32) / x
instead of
y = np.float32(1.0) / x
No branches or pull requests
y
is numpy array vs. dpnp arrayComplete reproducer is here https://gist.github.com/samaid/b4510dbcd7285ceed36b42dd96acf30c
The text was updated successfully, but these errors were encountered: