View source: R/nnf-activation.R
nnf_gumbel_softmax | R Documentation |
Samples from the Gumbel-Softmax distribution and optionally discretizes.
nnf_gumbel_softmax(logits, tau = 1, hard = FALSE, dim = -1)
logits |
|
tau |
non-negative scalar temperature |
hard |
if |
dim |
(int) A dimension along which softmax will be computed. Default: -1. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.