MCPcopy Create free account
hub / github.com/alibaba/nann / _DefaultGradYs

Function _DefaultGradYs

tensorflow/tensorflow/python/ops/gradients_util.py:139–226  ·  view source on GitHub ↗

Fill in default values for grad_ys. Args: grad_ys: List of gradients, can contain None. ys: List of tensors. colocate_gradients_with_ops: If True, try colocating gradients with the corresponding op. gradient_uid: A unique identifier within the graph indicating which in

(grad_ys,
                   ys,
                   colocate_gradients_with_ops,
                   gradient_uid="__unsupported__")

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

_GradientsHelperFunction · 0.85

Calls 7

_maybe_colocate_withFunction · 0.85
TypeErrorFunction · 0.85
fillMethod · 0.80
appendMethod · 0.45
shapeMethod · 0.45
constantMethod · 0.45
identityMethod · 0.45

Tested by

no test coverage detected