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

Function add_setup_steps

caffe2/python/task.py:146–155  ·  view source on GitHub ↗
(step, init_nets, exit_nets, name)

Source from the content-addressed store, hash-verified

144
145
146def add_setup_steps(step, init_nets, exit_nets, name):
147 if not init_nets and not exit_nets:
148 return step
149 steps = []
150 if init_nets:
151 steps.append(core.execution_step('%s:init' % name, init_nets))
152 steps.append(step)
153 if len(exit_nets) > 0:
154 steps.append(core.execution_step('%s:exit' % name, exit_nets))
155 return core.execution_step(name, steps)
156
157
158class TaskGroup(context.Managed):

Callers 1

get_stepMethod · 0.85

Calls 2

execution_stepMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…