Subsetting a two dimensional tensor with a one dimensional tensor

后端 未结 0 1944
轻奢々
轻奢々 2021-01-20 03:36

I want to extract from each row of a two-dimensional tensor the column that is stored in another one dimensional tensor.

import torch
test_tensor = tensor([1,         


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