(self)
| 468 | np.testing.assert_equal(torch_chunks[i].cpu().numpy(), cpu_chunks[i].numpy()) |
| 469 | |
| 470 | def test_dot_vector_matrix(self): |
| 471 | a = torch.arange(65, dtype=torch.float32, device=device) |
| 472 | b = torch.arange(65*45, dtype=torch.float32, device=device).reshape(65, 45) |
| 473 | torch_res = a.matmul(b).reshape(-1).cpu().numpy() |
| 474 | cpu_res = torch.arange(65, dtype=torch.float32).matmul(torch.arange(65*45, dtype=torch.float32).reshape(65, 45)).numpy() |
| 475 | np.testing.assert_equal(torch_res, cpu_res) |
| 476 | |
| 477 | def test_alias_passthrough(self): |
| 478 | a = torch.randn(3, 3, device=device) |
nothing calls this directly
no test coverage detected