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

Function Recurrent

lingvo/core/recurrent.py:985–1139  ·  view source on GitHub ↗

Compute a recurrent neural net. Roughly, `Recurrent()` computes the following:: state = state0 for t in inputs' sequence length: state, extras = cell_fn(theta, state, inputs[t, :]) accumulate_state[t, :] = state return accumulate_state, state `theta`, `state`

(theta,
              state0,
              inputs,
              cell_fn,
              cell_grad=None,
              cell_type=None,
              stop_fn=None,
              extras=None,
              check_stateful_ops=False,
              accumulator_layer=None,
              allow_implicit_capture=False,
              allowed_tensor_captures=None,
              backward_cleanup=None,
              return_acc_extras=False)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

_StackedRecurrentFunction · 0.85

Calls 15

_TransformDTypeFunction · 0.85
_IsSingleTimeStepFunction · 0.85
_RecurrentSingleTimeStepFunction · 0.85
_GetCellGradFunction · 0.85
_IndexFunction · 0.85
_RecurrentClass · 0.85
_AugmentStateFunction · 0.85
copyMethod · 0.80
DisableMethod · 0.80
DeepCopyMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…