Using an ellipsis for the middle dimensions of a PyTorch tensor

前端 未结 0 857
你的背包
你的背包 2020-12-09 10:35

Suppose I have a torch.Tensor t of shape (10, 20, 20, 10). I want to index along the first and last dimensions only.

In this case, since I k

相关标签:
回答
  • 消灭零回复
提交回复
热议问题