Skip to content

Commit

Permalink
Merge branch 'release/1.10' into fix_110
Browse files Browse the repository at this point in the history
  • Loading branch information
malfet committed Oct 14, 2021
2 parents 59e3be8 + 3c134b8 commit c9c3ee9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/test_python_dispatch.py
Expand Up @@ -448,6 +448,7 @@ def test_nested_enable_python_mode(self) -> None:
with enable_python_mode(LoggingTensor):
with enable_python_mode(LoggingTensor):
pass

def test_tolist_numpy_with_python_mode(self) -> None:
x = LoggingTensor(torch.tensor([2.0, 3.0]))
with self.assertRaisesRegex(RuntimeError, "is not supported for tensor subclasses."):
Expand All @@ -456,5 +457,7 @@ def test_tolist_numpy_with_python_mode(self) -> None:
x.numpy()
with self.assertRaises(AssertionError):
self.assertEqual(x, None)


if __name__ == '__main__':
run_tests()

0 comments on commit c9c3ee9

Please sign in to comment.