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

Function StopImmediate

caffe2/python/workspace.py:642–653  ·  view source on GitHub ↗

Stops an immediate mode run.

()

Source from the content-addressed store, hash-verified

640
641
642def StopImmediate():
643 """Stops an immediate mode run."""
644 # Phew, that was a dangerous ride.
645 global _immediate_mode
646 global _immediate_root_folder
647 if not IsImmediate():
648 return
649 with WorkspaceGuard(_immediate_workspace_name):
650 ResetWorkspace()
651 shutil.rmtree(_immediate_root_folder)
652 _immediate_root_folder = ''
653 _immediate_mode = False
654
655
656def ImmediateBlobs():

Callers 1

StartImmediateFunction · 0.85

Calls 3

IsImmediateFunction · 0.85
WorkspaceGuardFunction · 0.85
ResetWorkspaceFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…