(self)
| 41 | class TestScriptProfile(JitTestCase): |
| 42 | |
| 43 | def test_basic(self): |
| 44 | seq = torch.jit.script(Sequence()) |
| 45 | p = torch.jit._ScriptProfile() |
| 46 | p.enable() |
| 47 | seq(torch.rand((10, 100))) |
| 48 | p.disable() |
| 49 | self.assertNotEqual(p.dump_string(), "") |
| 50 | |
| 51 | def test_script(self): |
| 52 | seq = Sequence() |
nothing calls this directly
no test coverage detected