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

Method add_param_copy_operators

caffe2/python/layers/layers.py:476–479  ·  view source on GitHub ↗
(self, net)

Source from the content-addressed store, hash-verified

474 self.add_eval_ops(net)
475
476 def add_param_copy_operators(self, net):
477 for param in self.params:
478 param_copy_ref = self.model.metrics_schema[str(param.parameter)]
479 net.Copy([param.parameter], param_copy_ref.field_blobs())
480
481 def export_output_for_metrics(self):
482 self._export_output_for_metrics = True

Callers 1

add_operatorsMethod · 0.95

Calls 1

field_blobsMethod · 0.45

Tested by

no test coverage detected