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

Method fn

test/jit/test_script_profile.py:55–60  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

53
54 @torch.jit.script
55 def fn():
56 p = torch.jit._ScriptProfile()
57 p.enable()
58 _ = seq(torch.rand((10, 100)))
59 p.disable()
60 return p
61
62 self.assertNotEqual(fn().dump_string(), "")
63

Callers

nothing calls this directly

Calls 5

seqFunction · 0.85
enableMethod · 0.45
randMethod · 0.45
disableMethod · 0.45
dump_stringMethod · 0.45

Tested by

no test coverage detected