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

Method add_train_ops

caffe2/python/layers/fc.py:215–217  ·  view source on GitHub ↗
(self, net)

Source from the content-addressed store, hash-verified

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
217 self._add_ops(net, self.train_param_blobs, "fp32")
218
219 def get_fp16_compatible_parameters(self):
220 if self.output_dim_vec is None or len(self.output_dim_vec) == 1:

Callers

nothing calls this directly

Calls 1

_add_opsMethod · 0.95

Tested by

no test coverage detected