TensorPlay
latest (dev)
Copy
View Markdown

Latest development documentation · Updated 2026-10-15

tensorplay.nn.functional.linear

tensorplay.nn.functional.linear(input: Tensor, weight: Tensor, bias: Tensor | None = None) → Tensor[source]

Applies a linear transformation to the incoming data: y=xAT+by = xA^T + b.

Shape:
  • Input: (∗,Hin)(*, H_\text{in}) where ∗* means any number of dimensions including none and Hin=in_featuresH_\text{in} = \text{in\_features}.

  • Weight: (Hout,Hin)(H_\text{out}, H_\text{in}) where Hout=out_featuresH_\text{out} = \text{out\_features}.

  • Bias: (Hout)(H_\text{out})

  • Output: (∗,Hout)(*, H_\text{out})

See Linear for more details.

On this page

Ask DeepWiki