Hi, I am trying to understand how the conversion of tensors happens in PyTorch.
x = torch.tensor([1, 2, 45896213, 5584700])
y = x.type(torch.int8)
print(y)
tensor([ 1, 2, 21, 60], dtype=torch.int8)
so, my questions are:
- why this piece of code does not raise any conversion errors.
- why I am getting 21 and 60
Thanks.