sample_categorical: Categorical sample

View source: R/samplers.R

sample_categoricalR 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


henry090/tfaddons documentation built on April 7, 2022, 11:27 p.m.