Libtorch Tensor indexing using Boolean logic in C++

前端 未结 0 1266
夕颜
夕颜 2020-12-18 04:11

I am trying to set specific values in a tensor to 0 if they are smaller than a certain threshold. My code looks like this:

#include 
#in         


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