We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1da0d6 commit 7c734dbCopy full SHA for 7c734db
array_api_compat/cupy/_aliases.py
@@ -121,7 +121,7 @@ def astype(
121
if device is None:
122
return x.astype(dtype=dtype, copy=copy)
123
out = _helpers.to_device(x.astype(dtype=dtype, copy=False), device)
124
- return out.copy() if copy and out is x else x
+ return out.copy() if copy and out is x else out
125
126
127
# These functions are completely new here. If the library already has them
0 commit comments