(num, num_tokens)
return tf.one_hot(
      tf.random_uniform(shape=(num,), maxval=num_tokens, dtype=tf.int32),
      depth=num_tokens)
Makes random one hot vectors of size [num, num_tokens].
Makes random one hot vectors of size [num, num_tokens].
Makes random one hot vectors of size [ num num_tokens ] .
def make_random_one_hot_vectors(num, num_tokens):
  """Makes random one hot vectors of size [num, num_tokens]."""
  return tf.one_hot(
      tf.random_uniform(shape=(num,), maxval=num_tokens, dtype=tf.int32),
      depth=num_tokens)
def make_random_one_hot_vectors ( num , num_tokens ) : return tf . one_hot ( tf . random_uniform ( shape = ( num , ) , maxval = num_tokens , dtype = tf . int32 ) , depth = num_tokens )