bias (bool) – If set to False, the layer will not learn an additive bias.
Default: True
Shape:
Input: (∗,Hin) where ∗ means any number of
dimensions including none and Hin=in_features.
Output: (∗,Hout) where all but the last dimension
are the same shape as the input and Hout=out_features.
Variables:
weight (torch.Tensor) – the learnable weights of the module of shape
(out_features,in_features). The values are
initialized from U(−k,k), where
k=in_features1
bias – the learnable bias of the module of shape (out_features).
If bias is True, the values are initialized from
U(−k,k) where
k=in_features1
To analyze traffic and optimize your experience, we serve cookies on this site. By clicking or navigating, you agree to allow our usage of cookies. As the current maintainers of this site, Facebook’s Cookies Policy applies. Learn more, including about available controls: Cookies Policy.