• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1import torch
2
3
4t = torch.randn(2, 3)
5reveal_type(t)  # E: {Tensor}
6u = torch.randn(2, 3)
7reveal_type(u)  # E: {Tensor}
8t.copy_(u)
9reveal_type(t)  # E: {Tensor}
10r = (t == u).all()
11reveal_type(r)  # E: {Tensor}
12