One-hot mask a range of tensors given a label

后端 未结 0 1460
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-20 06:14

I am wondering how can I make use of torch.scatter_() or any other built-in masking function for this one-hot masking task-

I have two tensors-

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