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

Method step

tensorflow/python/keras/layers/recurrent.py:718–727  ·  view source on GitHub ↗
(inputs, states)

Source from the content-addressed store, hash-verified

716 raise ValueError('RNN cell does not support constants')
717
718 def step(inputs, states):
719 constants = states[-self._num_constants:] # pylint: disable=invalid-unary-operand-type
720 states = states[:-self._num_constants] # pylint: disable=invalid-unary-operand-type
721
722 states = states[0] if len(states) == 1 and is_tf_rnn_cell else states
723 output, new_states = self.cell.call(
724 inputs, states, constants=constants, **kwargs)
725 if not nest.is_sequence(new_states):
726 new_states = [new_states]
727 return output, new_states
728 else:
729
730 def step(inputs, states):

Callers

nothing calls this directly

Calls 1

callMethod · 0.45

Tested by

no test coverage detected