sample_categorical {tfaddons}R Documentation

Categorical sample

Description

Samples from categorical distribution.

Usage

sample_categorical(
  logits,
  dtype = tf$int32,
  sample_shape = list(),
  seed = NULL
)

Arguments

logits

logits

dtype

dtype

sample_shape

the shape of sample

seed

random seed: integer

Value

a Tensor


[Package tfaddons version 0.10.0 Index]