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

Function _get_next_step_name

caffe2/python/control.py:28–36  ·  view source on GitHub ↗
(control_name, base_name)

Source from the content-addressed store, hash-verified

26
27
28def _get_next_step_name(control_name, base_name):
29 global _current_idx, _used_step_names
30 concat_name = '%s/%s' % (base_name, control_name)
31 next_name = concat_name
32 while next_name in _used_step_names:
33 next_name = '%s_%d' % (concat_name, _current_idx)
34 _current_idx += 1
35 _used_step_names.add(next_name)
36 return next_name
37
38
39def _MakeList(input):

Callers 11

DoFunction · 0.85
DoParallelFunction · 0.85
if_stepFunction · 0.85
_RunOnceIfNotFunction · 0.85
ForFunction · 0.85
while_stepFunction · 0.85
UntilFunction · 0.85
DoWhileFunction · 0.85
DoUntilFunction · 0.85
SwitchFunction · 0.85
SwitchNotFunction · 0.85

Calls 1

addMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…