There’s no error. Some of the returned tensors are just zeros.
Output from the first variant:
Tensor from 0 - tensor([88, 89, 90], dtype=torch.uint8)
Tensor from 0 - tensor([88, 89, 90], dtype=torch.uint8)
Tensor from 0 - tensor([88, 89, 90], dtype=torch.uint8)
Tensor from 0 - tensor([88, 89, 90], dtype=torch.uint8)
Tensor from 0 - tensor([88, 89, 90], dtype=torch.uint8)
Tensor from 0 - tensor([88, 89, 90], dtype=torch.uint8)
Tensor from 0 - tensor([88, 89, 90], dtype=torch.uint8)
Tensor from 0 - tensor([88, 89, 90], dtype=torch.uint8)
Tensor from 0 - tensor([88, 89, 90], dtype=torch.uint8)
Tensor from 0 - tensor([88, 89, 90], dtype=torch.uint8)
Tensor from 1 - tensor([88, 89, 90], dtype=torch.uint8)
Tensor from 1 - tensor([88, 89, 90], dtype=torch.uint8)
Tensor from 1 - tensor([88, 89, 90], dtype=torch.uint8)
Tensor from 1 - tensor([88, 89, 90], dtype=torch.uint8)
Tensor from 1 - tensor([88, 89, 90], dtype=torch.uint8)
Tensor from 1 - tensor([88, 89, 90], dtype=torch.uint8)
Tensor from 1 - tensor([88, 89, 90], dtype=torch.uint8)
Tensor from 1 - tensor([88, 89, 90], dtype=torch.uint8)
Tensor from 1 - tensor([88, 89, 90], dtype=torch.uint8)
Tensor from 1 - tensor([88, 89, 90], dtype=torch.uint8)
Tensor from 3 - tensor([88, 89, 90], dtype=torch.uint8)
Tensor from 3 - tensor([88, 89, 90], dtype=torch.uint8)
Tensor from 3 - tensor([88, 89, 90], dtype=torch.uint8)
Tensor from 3 - tensor([88, 89, 90], dtype=torch.uint8)
Tensor from 3 - tensor([88, 89, 90], dtype=torch.uint8)
Tensor from 3 - tensor([88, 89, 90], dtype=torch.uint8)
Tensor from 3 - tensor([88, 89, 90], dtype=torch.uint8)
Tensor from 3 - tensor([88, 89, 90], dtype=torch.uint8)
Tensor from 3 - tensor([88, 89, 90], dtype=torch.uint8)
Tensor from 3 - tensor([88, 89, 90], dtype=torch.uint8)
Tensor from 2 - tensor([88, 89, 90], dtype=torch.uint8)
Tensor from 2 - tensor([88, 89, 90], dtype=torch.uint8)
Tensor from 2 - tensor([88, 89, 90], dtype=torch.uint8)
Tensor from 2 - tensor([88, 89, 90], dtype=torch.uint8)
Tensor from 2 - tensor([88, 89, 90], dtype=torch.uint8)
Tensor from 2 - tensor([88, 89, 90], dtype=torch.uint8)
Tensor from 2 - tensor([88, 89, 90], dtype=torch.uint8)
Tensor from 2 - tensor([88, 89, 90], dtype=torch.uint8)
Tensor from 2 - tensor([88, 89, 90], dtype=torch.uint8)
Tensor from 2 - tensor([88, 89, 90], dtype=torch.uint8)
And from the second
Tensor from 3 - tensor([0, 0, 0], device=‘cuda:0’, dtype=torch.uint8)
Tensor from 3 - tensor([0, 0, 0], device=‘cuda:0’, dtype=torch.uint8)
Tensor from 3 - tensor([88, 89, 90], device=‘cuda:0’, dtype=torch.uint8)
Tensor from 3 - tensor([88, 89, 90], device=‘cuda:0’, dtype=torch.uint8)
Tensor from 3 - tensor([88, 89, 90], device=‘cuda:0’, dtype=torch.uint8)
Tensor from 3 - tensor([88, 89, 90], device=‘cuda:0’, dtype=torch.uint8)
Tensor from 3 - tensor([88, 89, 90], device=‘cuda:0’, dtype=torch.uint8)
Tensor from 3 - tensor([88, 89, 90], device=‘cuda:0’, dtype=torch.uint8)
Tensor from 3 - tensor([88, 89, 90], device=‘cuda:0’, dtype=torch.uint8)
Tensor from 3 - tensor([88, 89, 90], device=‘cuda:0’, dtype=torch.uint8)
Tensor from 0 - tensor([0, 0, 0], device=‘cuda:0’, dtype=torch.uint8)
Tensor from 2 - tensor([0, 0, 0], device=‘cuda:0’, dtype=torch.uint8)
Tensor from 1 - tensor([0, 0, 0], device=‘cuda:0’, dtype=torch.uint8)
Tensor from 0 - tensor([0, 0, 0], device=‘cuda:0’, dtype=torch.uint8)
Tensor from 2 - tensor([0, 0, 0], device=‘cuda:0’, dtype=torch.uint8)
Tensor from 1 - tensor([0, 0, 0], device=‘cuda:0’, dtype=torch.uint8)
Tensor from 0 - tensor([88, 89, 90], device=‘cuda:0’, dtype=torch.uint8)
Tensor from 2 - tensor([88, 89, 90], device=‘cuda:0’, dtype=torch.uint8)
Tensor from 1 - tensor([88, 89, 90], device=‘cuda:0’, dtype=torch.uint8)
Tensor from 0 - tensor([88, 89, 90], device=‘cuda:0’, dtype=torch.uint8)
Tensor from 2 - tensor([88, 89, 90], device=‘cuda:0’, dtype=torch.uint8)
Tensor from 1 - tensor([88, 89, 90], device=‘cuda:0’, dtype=torch.uint8)
Tensor from 0 - tensor([88, 89, 90], device=‘cuda:0’, dtype=torch.uint8)
Tensor from 2 - tensor([88, 89, 90], device=‘cuda:0’, dtype=torch.uint8)
Tensor from 1 - tensor([88, 89, 90], device=‘cuda:0’, dtype=torch.uint8)
Tensor from 0 - tensor([88, 89, 90], device=‘cuda:0’, dtype=torch.uint8)
Tensor from 2 - tensor([88, 89, 90], device=‘cuda:0’, dtype=torch.uint8)
Tensor from 1 - tensor([88, 89, 90], device=‘cuda:0’, dtype=torch.uint8)
Tensor from 0 - tensor([88, 89, 90], device=‘cuda:0’, dtype=torch.uint8)
Tensor from 2 - tensor([88, 89, 90], device=‘cuda:0’, dtype=torch.uint8)
Tensor from 1 - tensor([88, 89, 90], device=‘cuda:0’, dtype=torch.uint8)
Tensor from 0 - tensor([88, 89, 90], device=‘cuda:0’, dtype=torch.uint8)
Tensor from 2 - tensor([88, 89, 90], device=‘cuda:0’, dtype=torch.uint8)
Tensor from 1 - tensor([88, 89, 90], device=‘cuda:0’, dtype=torch.uint8)
Tensor from 0 - tensor([88, 89, 90], device=‘cuda:0’, dtype=torch.uint8)
Tensor from 2 - tensor([88, 89, 90], device=‘cuda:0’, dtype=torch.uint8)
Tensor from 1 - tensor([88, 89, 90], device=‘cuda:0’, dtype=torch.uint8)
Tensor from 0 - tensor([88, 89, 90], device=‘cuda:0’, dtype=torch.uint8)
Tensor from 2 - tensor([88, 89, 90], device=‘cuda:0’, dtype=torch.uint8)
Tensor from 1 - tensor([88, 89, 90], device=‘cuda:0’, dtype=torch.uint8)
a bunch of first returned tensors is just zeros.