tensor.equal()方法: # 该方法用于比较两个tensor是否一样,一样则返回True否则为False a = torch.tensor([1,2,3,4]) b = torch.tens.
確定! 回上一頁