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
Need to implement following functions as described here Array manipulation routines
The text was updated successfully, but these errors were encountered:
Just noticed that numpy repeat and dpnp repeat are slightly different, as dpnp doesn't allow repeating a non-array.
repeat
eg
import dpnp as dnp dnp.repeat(0.05, 3) # error 'float' object has no attribute 'ndim' import numpy as np np.repeat(0.05, 3) # ok
Just leaving this here in case someone else is confused by the same thing.
Sorry, something went wrong.
@stisa, thank you for noticing that.
As per documentation dpnp.repeat supports input array x of either dpnp.ndarray or usm_ndarray type.
dpnp.repeat
x
dpnp.ndarray
usm_ndarray
We will prepare a PR to raise an explicit TypeError exception in case when x passed with unsupported type to make the issue more clear.
TypeError
No branches or pull requests
Need to implement following functions as described here Array manipulation routines
Basic operations
Changing array shape
Transpose-like operations
Changing number of dimensions
Changing kind of array
Joining arrays
Splitting arrays
Tiling arrays
Adding and removing elements
Rearranging elements
The text was updated successfully, but these errors were encountered: