Загрузка
In this module, the weight and bias are of torch.nn.UninitializedParameter
class. They will be initialized after the first call to forward is done and the
module will become a regular torch.nn.Linear module. The in_features argument
of the Linear is inferred from the input.shape[-1].
Check the torch.nn.modules.lazy.LazyModuleMixin for further documentation
on lazy modules and their limitations.
out_features (int) – size of each output sample
bias (UninitializedParameter) – If set to False, the layer will not learn an additive bias.
Default: True
weight (torch.nn.parameter.UninitializedParameter) – the learnable weights of the module of shape . The values are initialized from , where
bias (torch.nn.parameter.UninitializedParameter) – the learnable bias of the module of shape .
If bias is True, the values are initialized from
where
alias of Linear
Infers in_features based on input and initializes parameters.
Resets parameters based on their initialization used in __init__.