本文共 221 字,大约阅读时间需要 1 分钟。
any() missing 1 required positional arguments: "dim"
scores = torch.linspace(0.5, 0.6, steps=2).view(2)# b = torch.FloatTensor(0.5).seqence()# print(b)
if np.any(scores != -1):
print(111)
解决方法:
np.any(np.array(scores >5))
转载地址:http://rlfk.baihongyu.com/