MCPcopy Create free account
hub / github.com/pytorch/pytorch / test_cpp

Method test_cpp

test/test_jit.py:1836–1840  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 2

setupMethod · 0.45
shutdownMethod · 0.45

Tested by

no test coverage detected