Why hash values of a same tensors change if we affect it to different variables?

hash of Tensor is by object, not by value. It’s not reasonable to hash by value because (1) it’s expensive for large tensors and (2) every hash of a cuda tensor will be a synchronization.

1 Like