nnf_gumbel_softmax {torch} | R Documentation |
Gumbel_softmax
Description
Samples from the Gumbel-Softmax distribution and optionally discretizes.
Usage
nnf_gumbel_softmax(logits, tau = 1, hard = FALSE, dim = -1)
Arguments
logits |
|
tau |
non-negative scalar temperature |
hard |
if |
dim |
(int) A dimension along which softmax will be computed. Default: -1. |
[Package torch version 0.13.0 Index]