pytorch
1a09b05c - Fix `torch.equal` on CPU (#83350)

Commit
3 years ago
Fix `torch.equal` on CPU (#83350) `torch.equal` should not raise an exception when comparing tensors of different types I.e. `torch.equal(torch.tensor([1, 2]), torch.tensor([1, 2], dtype=torch.float)))` should return True rather than raise an exception. Also, this makes it consistent with GPU behaviour Fixes https://github.com/pytorch/pytorch/issues/83314 Pull Request resolved: https://github.com/pytorch/pytorch/pull/83350 Approved by: https://github.com/albanD
Author
Committer
Parents
Loading