Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pytorch/pytorch
/ disable
Method
disable
torch/jit/_script.py:1644–1645 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
1642
self.profile.enable()
1643
1644
def
disable(self):
1645
self.profile.disable()
1646
1647
def
dump_string(self) -> str:
1648
outputs: List[str] = []
Callers
15
inner
Function · 0.45
run_cprofile
Function · 0.45
disable
Function · 0.45
gc_context
Function · 0.45
tearDown
Method · 0.45
assertNoUnraisable
Method · 0.45
disable_gc
Function · 0.45
disable_gc
Function · 0.45
test_disabled
Method · 0.45
setUp
Method · 0.45
test_no_cyclic_references_in_step
Method · 0.45
test_cycle_lr_removed_after_out_of_scope
Method · 0.45
Calls
no outgoing calls
Tested by
11
disable_gc
Function · 0.36
test_disabled
Method · 0.36
setUp
Method · 0.36
test_no_cyclic_references_in_step
Method · 0.36
test_cycle_lr_removed_after_out_of_scope
Method · 0.36
test_no_extra_ref_to_module
Method · 0.36
test_basic
Method · 0.36
fn
Method · 0.36
test_multi
Method · 0.36
test_empty
Method · 0.36
test_disable_for_custom_op
Method · 0.36