MCPcopy Index your code
hub / github.com/pytorch/pytorch / builder

Method builder

caffe2/python/checkpoint_test.py:102–106  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

100 tmpdir = tempfile.mkdtemp()
101
102 def builder():
103 ws = workspace.C.Workspace()
104 session = LocalSession(ws)
105 checkpoint = CheckpointManager(tmpdir, 'temp_node', 'minidb')
106 return session, checkpoint
107
108 self.run_with(builder)
109 finally:

Callers

nothing calls this directly

Calls 3

LocalSessionClass · 0.90
CheckpointManagerClass · 0.90

Tested by

no test coverage detected