What is the meaning of a tensor shape starting with 0?

When I prints shape from a tensor I get: torch.Size([0, 1, 1004, 1002]).

This means that there is no element in that tensor?

Hi,

Yes that means that the Tensor is empty.

1 Like