Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

tfb_masked_dense

Autoregressively masked dense layer


Description

Analogous to tf$layers$dense.

Usage

tfb_masked_dense(
  inputs,
  units,
  num_blocks = NULL,
  exclusive = FALSE,
  kernel_initializer = NULL,
  reuse = NULL,
  name = NULL,
  ...
)

Arguments

inputs

Tensor input.

units

integer scalar representing the dimensionality of the output space.

num_blocks

integer scalar representing the number of blocks for the MADE masks.

exclusive

logical scalar representing whether to zero the diagonal of the mask, used for the first layer of a MADE.

kernel_initializer

Initializer function for the weight matrix. If NULL (default), weights are initialized using the tf$glorot_random_initializer

reuse

logical scalar representing whether to reuse the weights of a previous layer by the same name.

name

string used to describe ops managed by this function.

...

tf$layers$dense arguments

Details

See Germain et al. (2015)for detailed explanation.

Value

tensor

References

See Also


tfprobability

Interface to 'TensorFlow Probability'

v0.11.0.0
Apache License (>= 2.0)
Authors
Sigrid Keydana [aut, cre], Daniel Falbel [ctb], Kevin Kuo [ctb] (<https://orcid.org/0000-0001-7803-7901>), RStudio [cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.