Skip to content

Commit

Permalink
Update array_api_compat/cupy/_aliases.py
Browse files Browse the repository at this point in the history
Co-authored-by: Lucas Colley <[email protected]>
  • Loading branch information
crusaderky and lucascolley authored Jan 24, 2025
1 parent e1da0d6 commit 7c734db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion array_api_compat/cupy/_aliases.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def astype(
if device is None:
return x.astype(dtype=dtype, copy=copy)
out = _helpers.to_device(x.astype(dtype=dtype, copy=False), device)
return out.copy() if copy and out is x else x
return out.copy() if copy and out is x else out


# These functions are completely new here. If the library already has them
Expand Down

0 comments on commit 7c734db

Please sign in to comment.