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

Function WorkspaceGuard

caffe2/python/workspace.py:585–589  ·  view source on GitHub ↗
(workspace_name)

Source from the content-addressed store, hash-verified

583
584@contextlib.contextmanager
585def WorkspaceGuard(workspace_name):
586 current = CurrentWorkspace()
587 SwitchWorkspace(workspace_name, True)
588 yield
589 SwitchWorkspace(current)
590
591
592def StartImmediate(i_know=False):

Callers 6

StartImmediateFunction · 0.85
StopImmediateFunction · 0.85
ImmediateBlobsFunction · 0.85
RunOperatorImmediateFunction · 0.85
FetchImmediateFunction · 0.85
FeedImmediateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…