def step(self, time, inputs, state, name=None):
    with ops.name_scope(name, 'BasicDecoderStep', (time, inputs, state)):
        (cell_outputs, cell_state) = self._cell(inputs, state)
        projection_inputs = cell_outputs
        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, projection_inputs)
    return (outputs, next_state, next_inputs, finished)
def step(self, time, inputs, state, name=None):
    with ops.name_scope(name, 'BasicDecoderStep', (time, inputs, state)):
        (cell_outputs, cell_state) = self._cell(inputs, state)
        projection_inputs = cell_outputs
        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, projection_inputs)
    return (outputs, next_state, next_inputs, finished)