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

Function CallDefun

lingvo/core/py_utils.py:6034–6061  ·  view source on GitHub ↗

Wraps fwd in a defun with custom gradient bak and calls it with args. Args: fwd: A callable xs: Nested Structure -> ys: Nested Structure. args: A Nested Structure of tf.Tensor or None. bak: A callable xs, ys, dys: Nested Structure -> dxs[, dcapture]: Nested Structure. The custom

(fwd, args=None, bak=None, bak_as_function=False, device=None)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

AssertIdShapeFunction · 0.85
RematerializeFnFunction · 0.85

Calls 3

TransformFunction · 0.85
FunctionClass · 0.85
TensorSpecsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…