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

Method used_nodes

caffe2/python/task.py:233–239  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

231 return len(self._tasks_to_add) + len(self._tasks)
232
233 def used_nodes(self):
234 # use list to keep order
235 used = []
236 for task in self._tasks + self._tasks_to_add:
237 if task.node not in used:
238 used.append(task.node)
239 return used
240
241 def report_step(self, step=None, node=None, interval_ms=1000):
242 """

Callers 1

nodes_to_checkpointMethod · 0.80

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected