This PR introduces changes that we discussed some time ago: renames current to_device() to to_storage() used for changing the storage, and introduces Array API compatible to_device() and device property (also needed for array-api-tests).
There's also a small fix for avoiding unwanted type promotion when executing: Tensor + python scalar to align with Array API.
Hi @hameerabbasi,
This PR introduces changes that we discussed some time ago: renames current
to_device()
toto_storage()
used for changing the storage, and introduces Array API compatibleto_device()
anddevice
property (also needed forarray-api-tests
).There's also a small fix for avoiding unwanted type promotion when executing:
Tensor + python scalar
to align with Array API.