heat
heat copied to clipboard
Aliases for unsigned integer types `uint16`, `uint32` and `uint64`
Related #774
Feature functionality see https://numpy.org/doc/stable/reference/arrays.scalars.html
Additional context See Python array API standard
Hello, We cannot use pytorch directly here as pytorch currently does not support above mentioned types. so what can be other options , any help would be great, Thanks.
@ClaudiaComito @mtar here one possible way can be we can convert uint16
to int32
first and then return torch.int32
, but this is also not feasible ig . Any alternatives?
Branch 782-Aliases_for_unsigned_integer_types_uint16_uint32_and_uint64 created!
As @Dhruv454000 mentioned, Pytorch does not support these datatypes yet.
We will follow developments there and expand dtype support whenever PyTorch does. https://github.com/pytorch/pytorch/issues/58734
I'll leave this issue open.
Reviewed within #1109