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

Function _PrependNets

caffe2/python/control.py:65–71  ·  view source on GitHub ↗
(nets_or_steps, *nets)

Source from the content-addressed store, hash-verified

63
64
65def _PrependNets(nets_or_steps, *nets):
66 nets_or_steps = _MakeList((nets_or_steps,))
67 nets = _MakeList(nets)
68 if _IsNets(nets_or_steps):
69 return nets + nets_or_steps
70 else:
71 return [Do('prepend', nets)] + nets_or_steps
72
73
74def _AppendNets(nets_or_steps, *nets):

Callers 5

_RunOnceIfFunction · 0.85
_RunOnceIfNotFunction · 0.85
ForFunction · 0.85
WhileFunction · 0.85
UntilFunction · 0.85

Calls 3

_MakeListFunction · 0.85
_IsNetsFunction · 0.85
DoFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…