torch.nn.functional.linear
- torch.nn.functional.linear(input, weight, bias=None) → Tensor
Applies a linear transformation to the incoming data: .
Applies a linear transformation to the incoming data: .
This operation supports 2-D weight with sparse layout
This operator supports TensorFloat32.
Shape:
Input: where * means any number of additional dimensions, including none
Weight: or
Bias: or
Output: or , based on the shape of the weight