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

Method test_empty

test/jit/test_script_profile.py:107–111  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

105 self.assertNotEqual(s1, s2)
106
107 def test_empty(self):
108 p = torch.jit._ScriptProfile()
109 p.enable()
110 p.disable()
111 self.assertEqual(p.dump_string(), "")

Callers

nothing calls this directly

Calls 4

enableMethod · 0.45
disableMethod · 0.45
assertEqualMethod · 0.45
dump_stringMethod · 0.45

Tested by

no test coverage detected