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

Method enable

torch/jit/_script.py:1641–1642  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1639 self.profile = classes.profiling._ScriptProfile()
1640
1641 def enable(self):
1642 self.profile.enable()
1643
1644 def disable(self):
1645 self.profile.disable()

Callers 15

run_cprofileFunction · 0.45
gc_contextFunction · 0.45
initializeMethod · 0.45
__enter__Method · 0.45
profile_wrapperFunction · 0.45
setUpMethod · 0.45
tearDownMethod · 0.45
assertNoUnraisableMethod · 0.45
disable_gcFunction · 0.45
_assert_valid_refcountFunction · 0.45

Calls

no outgoing calls

Tested by 15

disable_gcFunction · 0.36
test_disabledMethod · 0.36
wrappedMethod · 0.36
test_basicMethod · 0.36
fnMethod · 0.36
test_multiMethod · 0.36