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

Method AddNets

caffe2/python/core.py:2902–2906  ·  view source on GitHub ↗
(self, nets)

Source from the content-addressed store, hash-verified

2900 return self._plan
2901
2902 def AddNets(self, nets):
2903 for net in nets:
2904 if _add_net_to_dict(self._net_dict, net):
2905 assert isinstance(net, Net)
2906 self._plan.network.add().CopyFrom(net.Proto())
2907
2908 def Nets(self):
2909 return list(self._net_dict.values())

Callers 1

AddStepMethod · 0.95

Calls 4

_add_net_to_dictFunction · 0.85
isinstanceFunction · 0.85
addMethod · 0.45
ProtoMethod · 0.45

Tested by

no test coverage detected