R/samplers.R
sample_categorical.Rd
Samples from categorical distribution.
sample_categorical( logits, dtype = tf$int32, sample_shape = list(), seed = NULL )
logits
dtype
the shape of sample
random seed: integer
a Tensor