A torch::nn_module() Representing a skip connection
Source: R/approach_vaeac_torch_modules.R
skip_connection.RdSkip connection over the sequence of layers in the constructor. The module passes input data sequentially through these layers and then adds original data to the result.
Arguments
- ...
network modules such as, e.g.,
torch::nn_linear(),torch::nn_relu(), andmemory_layer()objects. Seevaeac()for more information.