MCPcopy Create free account
hub / github.com/tensorflow/lingvo / ComputeNumericGradient

Function ComputeNumericGradient

lingvo/core/test_utils.py:468–534  ·  view source on GitHub ↗

Compute the numeric gradient of y wrt to x. Args: sess: The TF session constructed with a graph containing x and y. y: A scalar TF Tensor in the graph constructed in sess. x: A TF Tensor in the graph constructed in sess. delta: Gradient checker's small perturbation of x[i]. st

(sess,
                           y,
                           x,
                           delta=1e-4,
                           step=1,
                           extra_feed_dict=None)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 3

runMethod · 0.80
copyMethod · 0.80
assignMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…