int64
represents a LongTensor
, yes:
x = torch.tensor(1)
print(x.dtype)
# torch.int64
print(x.type())
# torch.LongTensor
The tensor creation is done in the default collate_fn
of the DataLoader
.
int64
represents a LongTensor
, yes:
x = torch.tensor(1)
print(x.dtype)
# torch.int64
print(x.type())
# torch.LongTensor
The tensor creation is done in the default collate_fn
of the DataLoader
.