Hi,
empty()
returns a Tensor with uninitialized memory. You can check the doc for more details.
What do you mean by “empty” here? If you want a Tensor with no data in it. you can create a Tensor with 0 size: x = torch.empty(0, 3)
.
Hi,
empty()
returns a Tensor with uninitialized memory. You can check the doc for more details.
What do you mean by “empty” here? If you want a Tensor with no data in it. you can create a Tensor with 0 size: x = torch.empty(0, 3)
.