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

Method add_ops

caffe2/python/layers/fc.py:206–213  ·  view source on GitHub ↗

Both the predict net and the eval net will call this function

(self, net)

Source from the content-addressed store, hash-verified

204 [self.output_schema.field_blobs()[0] + "_concat_dims"])
205
206 def add_ops(self, net):
207 """Both the predict net and the eval net will call this function
208 """
209 version_info = get_current_scope().get(
210 get_fc_predictor_version.__name__, {'fc_version': 'fp32'}
211 )
212 predictor_fc_fp_version = version_info['fc_version']
213 self._add_ops(net, self.param_blobs, predictor_fc_fp_version)
214
215 def add_train_ops(self, net):
216 # use the train_param_blobs to be consistent with the SamplingTrain unittest

Callers

nothing calls this directly

Calls 3

_add_opsMethod · 0.95
get_current_scopeFunction · 0.90
getMethod · 0.45

Tested by

no test coverage detected