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

Method AddNet

caffe2/python/core.py:2797–2803  ·  view source on GitHub ↗
(self, net)

Source from the content-addressed store, hash-verified

2795 self._step.concurrent_substeps = concurrent_substeps
2796
2797 def AddNet(self, net):
2798 self._assert_can_mutate()
2799 assert not self.HasSubsteps(), 'Cannot have both network and substeps.'
2800 assert isinstance(net, Net)
2801 _add_net_to_dict(self._net_dict, net)
2802 self._step.network.extend([get_net_name(net)])
2803 return self
2804
2805 def get_all_attributes(self, name):
2806 """

Callers 3

execution_stepFunction · 0.95
get_meta_net_defFunction · 0.80
test_dataset_opsMethod · 0.80

Calls 6

_assert_can_mutateMethod · 0.95
HasSubstepsMethod · 0.95
isinstanceFunction · 0.85
_add_net_to_dictFunction · 0.85
get_net_nameFunction · 0.85
extendMethod · 0.45

Tested by 1

test_dataset_opsMethod · 0.64