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

Function gradients

tensorflow/tensorflow/python/ops/gradients_impl.py:44–159  ·  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,
              unconnected_gradients=UnconnectedGradients.NONE)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

fwd_gradientsFunction · 0.90
_hessian_vector_productFunction · 0.70
hessiansFunction · 0.70

Calls 1

_mutation_lockMethod · 0.80

Tested by

no test coverage detected