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

Function _AppendNets

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

Source from the content-addressed store, hash-verified

72
73
74def _AppendNets(nets_or_steps, *nets):
75 nets_or_steps = _MakeList((nets_or_steps,))
76 nets = _MakeList(nets)
77 if _IsNets(nets_or_steps):
78 return nets_or_steps + nets
79 else:
80 return nets_or_steps + [Do('append', nets)]
81
82
83def GetConditionBlobFromNet(condition_net):

Callers 2

DoWhileFunction · 0.85
DoUntilFunction · 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…