(self, time, inputs, state, name=None)
return (outputs, next_state, next_inputs, finished)
Perform a decoding step.

    Args:
      time: scalar `int32` tensor.
      inputs: A (structure of) input tensors.
      state: A (structure of) state tensors and TensorArrays.
      name: Name scope for any created operations.

    Returns:
      `(outputs, next_state, next_inputs, finished)`.
Perform a decoding step.
Perform a decoding step .
def step(self, time, inputs, state, name=None):
    """Perform a decoding step.

    Args:
      time: scalar `int32` tensor.
      inputs: A (structure of) input tensors.
      state: A (structure of) state tensors and TensorArrays.
      name: Name scope for any created operations.

    Returns:
      `(outputs, next_state, next_inputs, finished)`.
    """
    with tf.name_scope(name, "BasicDecoderStep", (time, inputs, state)):
      cell_outputs, cell_state = self._cell(inputs, state)
      if self._output_layer is not None:
        cell_outputs = self._output_layer(cell_outputs)
      sample_ids = self._helper.sample(
          time=time, outputs=cell_outputs, state=cell_state)
      (finished, next_inputs, next_state) = self._helper.next_inputs(
          time=time,
          outputs=cell_outputs,
          state=cell_state,
          sample_ids=sample_ids)
    outputs = BasicDecoderOutput(cell_outputs, sample_ids)
    return (outputs, next_state, next_inputs, finished)
def step ( self , time , inputs , state , name = None ) : with tf . name_scope ( name , "BasicDecoderStep" , ( time , inputs , state ) ) : cell_outputs , cell_state = self . _cell ( inputs , state ) if self . _output_layer is not None : cell_outputs = self . _output_layer ( cell_outputs ) sample_ids = self . _helper . sample ( time = time , outputs = cell_outputs , state = cell_state ) ( finished , next_inputs , next_state ) = self . _helper . next_inputs ( time = time , outputs = cell_outputs , state = cell_state , sample_ids = sample_ids ) outputs = BasicDecoderOutput ( cell_outputs , sample_ids ) return ( outputs , next_state , next_inputs , finished )