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

Function gradients

tensorflow/python/ops/gradients_impl.py:396–640  ·  view source on GitHub ↗

Constructs symbolic derivatives of sum of `ys` w.r.t. x in `xs`. `ys` and `xs` are each a `Tensor` or a list of tensors. `grad_ys` is a list of `Tensor`, holding the gradients received by the `ys`. The list must be the same length as `ys`. `gradients()` adds ops to the graph to output the

(ys,
              xs,
              grad_ys=None,
              name="gradients",
              colocate_gradients_with_ops=False,
              gate_gradients=False,
              aggregation_method=None,
              stop_gradients=None)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 6

_hessian_vector_productFunction · 0.70
hessiansFunction · 0.70
AddToScalarAccumulatorFunction · 0.50
AddToTensorAccumulatorFunction · 0.50

Calls 15

_AsListFunction · 0.85
_DefaultGradYsFunction · 0.85
_PendingCountFunction · 0.85
_SetGradFunction · 0.85
_IsTrainableFunction · 0.85
_StopOpsFunction · 0.85
_maybe_colocate_withFunction · 0.85
_AggregatedGradsFunction · 0.85
anyFunction · 0.85
_MaybeCompileFunction · 0.85
grad_fnFunction · 0.85
_SymGradFunction · 0.85

Tested by

no test coverage detected