We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
dpctl.tensor.copy()
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
It looks dpctl doesn't properly handle lowercase order value in dpctl.tensor.copy():
import dpctl, dpctl.tensor as dpt a = dpt.ones(10) # works with dpt.asarray dpt.asarray(a, order='c') # Out: usm_ndarray([1., 1., 1., 1., 1., 1., 1., 1., 1., 1.], dtype=float32) # but caused an exception with dpt.copy dpt.copy(a, order='c') --------------------------------------------------------------------------- ValueError Traceback (most recent call last) Cell In[3], line 1 ----> 1 dpt.copy(a, order='c') File ~/miniconda3/envs/dpnp_dev/lib/python3.9/site-packages/dpctl/tensor/_copy_utils.py:536, in copy(usm_ary, order) 534 copy_order = "F" 535 else: --> 536 raise ValueError( 537 "Unrecognized value of the order keyword. " 538 "Recognized values are 'A', 'C', 'F', or 'K'" 539 ) 540 if order == "K": 541 R = _empty_like_orderK(usm_ary, usm_ary.dtype) ValueError: Unrecognized value of the order keyword. Recognized values are 'A', 'C', 'F', or 'K'
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
It looks dpctl doesn't properly handle lowercase order value in
dpctl.tensor.copy()
:The text was updated successfully, but these errors were encountered: