torch.nn.functional.linear#
- torch.nn.functional.linear(input,weight,bias=None)→Tensor#
Applies a linear transformation to the incoming data:.
This operation supports 2-D
weightwithsparse layoutWarning
Sparse support is a beta feature and some layout(s)/dtype/device combinations may not be supported,or may not have autograd support. If you notice missing functionality pleaseopen a feature request.
This operator supportsTensorFloat32.
Shape:
Input: where* means any number ofadditional dimensions, including none
Weight: or
Bias: or
Output: or, based on the shape of the weight