Created
May 17, 2023 02:14
-
-
Save samaid/b4510dbcd7285ceed36b42dd96acf30c to your computer and use it in GitHub Desktop.
Compute-follows-data breaks on the inverse operation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import dpnp as np | |
x = np.asarray([1.0, 2.0, 3.0], device="gpu").astype(np.float32) | |
y = np.float32(1.0) / x | |
print(type(x)) | |
print(type(y)) | |
assert isinstance(y, np.dpnp_array.dpnp_array) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment