Slicing gives incorrect results if the values are the same

后端 未结 0 1144
甜味超标
甜味超标 2021-01-29 03:31

I want to make a slice of a tensor with the same value.

import torch
dist = torch.ones((10, 20), dtype=torch.int32)
print(dist[[1, 2], [3, 4]])

I

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