heat icon indicating copy to clipboard operation
heat copied to clipboard

Aliases for unsigned integer types `uint16`, `uint32` and `uint64`

Open ClaudiaComito opened this issue 3 years ago • 4 comments

Related #774

Feature functionality see https://numpy.org/doc/stable/reference/arrays.scalars.html

Additional context See Python array API standard

ClaudiaComito avatar May 26 '21 10:05 ClaudiaComito

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.

Dhruv454000 avatar Apr 07 '22 14:04 Dhruv454000

@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?

Dhruv454000 avatar Apr 08 '22 07:04 Dhruv454000

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

ClaudiaComito avatar Aug 21 '23 11:08 ClaudiaComito