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

Method add_train_ops

caffe2/python/layers/sparse_lookup.py:530–531  ·  view source on GitHub ↗
(self, net)

Source from the content-addressed store, hash-verified

528 raise "Unsupported input type {0}".format(self.input_record)
529
530 def add_train_ops(self, net):
531 self._add_ops(net, self.trainer_version, is_train=True)
532
533 def add_ops(self, net):
534 version_info = get_current_scope().get(

Callers

nothing calls this directly

Calls 1

_add_opsMethod · 0.95

Tested by

no test coverage detected