How to retain 2D (or more) shape when using pytrorch masked_select

后端 未结 0 1769
北荒
北荒 2021-02-05 13:19

Suppose I have the following two matching shape tensors:

a = tensor([[ 0.0113, -0.1666,  0.5960, -0.0667], [-0.0977, -0.1984,  0.5153,  0.0420]])
selectors = tens         


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