(self, logit)
return slim.one_hot_encoding(prediction, self._params.num_char_classes)
Creates one hot encoding for a logit of a character.

    Args:
      logit: A tensor with shape [batch_size, num_char_classes].

    Returns:
      A tensor with shape [batch_size, num_char_classes]
Creates one hot encoding for a logit of a character.
Creates one hot encoding for a logit of a character .
def char_one_hot(self, logit):
    """Creates one hot encoding for a logit of a character.

    Args:
      logit: A tensor with shape [batch_size, num_char_classes].

    Returns:
      A tensor with shape [batch_size, num_char_classes]
    """
    prediction = tf.argmax(logit, axis=1)
    return slim.one_hot_encoding(prediction, self._params.num_char_classes)
def char_one_hot ( self , logit ) : prediction = tf . argmax ( logit , axis = 1 ) return slim . one_hot_encoding ( prediction , self . _params . num_char_classes )