Solved by SimonW in post #2 
              
              
                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.