MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / _GetGrads

Function _GetGrads

tensorflow/python/ops/gradients_util.py:848–853  ·  view source on GitHub ↗

Gets all gradients for op.

(grads, op)

Source from the content-addressed store, hash-verified

846
847
848def _GetGrads(grads, op):
849 """Gets all gradients for op."""
850 if op in grads:
851 return grads[op]
852 else:
853 return [[] for _ in xrange(len(op.outputs))]
854
855
856def _AccumulatorShape(inputs):

Callers 2

_HasAnyNotNoneGradsFunction · 0.85
_AggregatedGradsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected