Layers
Branch #
Lambda #
Bases: Module
, Module[..., OutT]
A simple nn.Module wrapping a function.
Any positional or keyword arguments passed to the constructor are saved into a args
and
kwargs
attribute. During the forward pass, these arguments are then bound to the function f
using a functools.partial
. Any additional arguments to the forward
method are then passed
to the partial.