Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
enable
Method · 0.45
disable
Method · 0.45
assertEqual
Method · 0.45
dump_string
Method · 0.45
Tested by
no test coverage detected