'sample for GreedyEmbeddingHelper.'

def sample(self, time, outputs, state, name=None):

    del time, state
    if (not isinstance(outputs, ops.Tensor)):
        raise TypeError(('Expected    outputs    to    be    a    single    Tensor,    got:    %s' % type(outputs)))
    sample_ids = math_ops.cast(math_ops.argmax(outputs, axis=(-1)), dtypes.int32)
    return sample_ids
