I want to check if two tensors are exactly the same. You need to check that the nature of the tensors is the same, not allclose the same way.
Does a function
foo exist that works like this?
foo must not change the state of its input tensors.
X = Tensor(...) X2 = X.copy() Y = nn.Parameter(X) foo(X, X) == True foo(X, Y) == True foo(Y, Y) == True foo(X2, X) == False foo(X2, Y) == False