These pronouns provide a cleaner, more readable way to reference layer parameters
in formula-based specifications for nn_module_generator() and related functions.
They work similarly to rlang::.data and rlang::.env.
Format
An object of class layer_pr (inherits from list) of length 0.
An object of class layer_index_pr (inherits from layer_pr, list) of length 0.
An object of class layer_input_pr (inherits from layer_pr, list) of length 0.
An object of class layer_output_pr (inherits from layer_pr, list) of length 0.
An object of class layer_is_output_pr (inherits from layer_pr, list) of length 0.
Details
Available pronouns:
.layer: Access all layer parameters as a list-like object.i: Layer index (1-based integer).in: Input dimension for the layer.out: Output dimension for the layer.is_output: Logical indicating if this is the output layer
These pronouns can be used in formulas passed to:
layer_arg_fnparameterCustom layer configuration functions
