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

Function if_step

caffe2/python/control.py:310–316  ·  view source on GitHub ↗
(control_name)

Source from the content-addressed store, hash-verified

308 nets_or_steps = _PrependNets(nets_or_steps, condition_not_net)
309
310 def if_step(control_name):
311 return core.scoped_execution_step(
312 _get_next_step_name(control_name, name),
313 nets_or_steps,
314 should_stop_blob=stop_blob,
315 only_once=True,
316 )
317
318 if _IsNets(nets_or_steps):
319 bool_net = BoolNet((stop_blob, False))

Callers 1

_RunOnceIfFunction · 0.85

Calls 1

_get_next_step_nameFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…