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

Method _CheckSumOpsConflict

caffe2/python/core.py:792–798  ·  view source on GitHub ↗
(self, out_base_name, g)

Source from the content-addressed store, hash-verified

790 return grad_op.output[idx], cnt + 1
791
792 def _CheckSumOpsConflict(self, out_base_name, g):
793 if str(out_base_name) == str(g):
794 # TODO not sure what this message really means
795 raise RuntimeError(
796 'The gradient output of empty gradient op can not '
797 'be the same as the normal name of the current '
798 'input gradient.')
799
800 def _MakeDenseSumOps(self, generators, out_base_name):
801 sum_op_input = []

Callers 2

_MakeDenseSumOpsMethod · 0.95
_MakeSparseSumOpsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected