The torch.equal() function tests if the tensors are the same size, and if all elements within the tensor are equal then it returns a single Boolean value.
確定! 回上一頁