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

Method _task_group

caffe2/python/checkpoint.py:453–459  ·  view source on GitHub ↗
(self, func, *args, **kw)

Source from the content-addressed store, hash-verified

451 self._path_type = None
452
453 def _task_group(self, func, *args, **kw):
454 assert self._node_managers is not None, 'init must be called first.'
455 with TaskGroup(WorkspaceType.GLOBAL) as task_group:
456 for node, manager in self._node_managers:
457 with Node(node):
458 func(manager, *args, **kw)
459 return task_group
460
461 """
462 Args:

Callers 3

initMethod · 0.95
loadMethod · 0.95
saveMethod · 0.95

Calls 3

TaskGroupClass · 0.90
NodeClass · 0.90
funcFunction · 0.70

Tested by

no test coverage detected