MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / Fwd

Method Fwd

tensorflow/contrib/recurrent/python/ops/recurrent.py:338–346  ·  view source on GitHub ↗
(*args)

Source from the content-addressed store, hash-verified

336
337 @function.Defun(*_Dtypes(fwd_sig))
338 def Fwd(*args):
339 (theta, state0, inputs) = _Pack(args, fwd_sig)
340 state1, extras = self._cell_fn(theta, state0, inputs)
341 assert not function.get_extra_args(), (
342 'cell_fn is not pure with extra args: %s.' %
343 (function.get_extra_args()))
344 _AssertIsCompatible(state1, self._state)
345 _AssertIsCompatible(extras, self._extras)
346 return _Flatten([state1, extras])
347
348 # Wraps cell_fn in a TF Function as a for-loop's body.
349 #

Callers

nothing calls this directly

Calls 3

_PackFunction · 0.85
_AssertIsCompatibleFunction · 0.85
_FlattenFunction · 0.70

Tested by

no test coverage detected