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

Method create_init_net

caffe2/python/layer_model_helper.py:227–230  ·  view source on GitHub ↗
(self, name)

Source from the content-addressed store, hash-verified

225 init_net._net.op.extend([initializer_op])
226
227 def create_init_net(self, name):
228 init_net = core.Net(name)
229 self._add_global_constants(init_net)
230 return init_net
231
232 def _validate_param_shape(self, param_name, shape):
233 if param_name not in self._param_to_shape:

Callers 5

__init__Method · 0.95
get_training_netsMethod · 0.80

Calls 2

_add_global_constantsMethod · 0.95
NetMethod · 0.80

Tested by 3

get_training_netsMethod · 0.64