# tensorplay.nn.functional.linear Source: https://www.tensorplay.cn/docs/generated/tensorplay.nn.functional.linear.html ```python tensorplay.nn.functional.linear(input: Tensor, weight: Tensor, bias: Tensor | None = None) → Tensor ``` Applies a linear transformation to the incoming data: $y = xA^T + b$. Shape: - Input: $(*, H_\text{in})$ where $*$ means any number of dimensions including none and $H_\text{in} = \text{in\_features}$. - Weight: $(H_\text{out}, H_\text{in})$ where $H_\text{out} = \text{out\_features}$. - Bias: $(H_\text{out})$ - Output: $(*, H_\text{out})$ See Linear for more details.