MCPcopy Create free account
hub / github.com/benoitsteiner/tensorflow-opencl / _DefaultGradYs

Function _DefaultGradYs

tensorflow/python/ops/gradients_impl.py:207–277  ·  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. Returns: A list of gradients to use, without None. Raises: ValueEr

(grad_ys, ys, colocate_gradients_with_ops)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

gradientsFunction · 0.85

Calls 6

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

Tested by

no test coverage detected