阅读背景:

如何使用布尔张量构造if语句

来源:互联网 

How do I make an if statement using a boolean tensor? To be more precise, I'm trying to compare a tensor of size 1 to a constant, checking to see if the value in the tensor is less than the constant. I figured out I have to make the constant its own size 1 tensor and use How do I make an if statement using a boolean t




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: