(self)
| 1834 | @unittest.skipIf(RUN_CUDA, "covered by test_cpp_cuda") |
| 1835 | @unittest.skipIf(not torch._C._jit_has_cpp_tests(), "Tests were not built, use BUILD_TEST=1") |
| 1836 | def test_cpp(self): |
| 1837 | from cpp.jit import tests_setup |
| 1838 | tests_setup.setup() |
| 1839 | torch._C._jit_run_cpp_tests() |
| 1840 | tests_setup.shutdown() |
| 1841 | |
| 1842 | def test_batchnorm(self): |
| 1843 | x = torch.ones(2, 2, 2, 2) |