sample_categorical: Categorical sample

Description Usage Arguments Value

View source: R/samplers.R

Description

Samples from categorical distribution.

Usage

1
2
3
4
5
6
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


tfaddons documentation built on July 2, 2020, 2:12 a.m.