TensorPlay

Latest development documentation · Updated 2026-09-08. A documentation snapshot for package 1.0.0.dev20260909 is not available.

On this page

tensorplay.nn.functional.linear

tensorplay.nn.functional.linear(input: TensorBase, weight: TensorBase, bias: TensorBase | None = None) TensorBase[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.

Search documentation

Search all 1,743 documentation pages.

Keyboard shortcuts

Global

  • /Focus search
  • ?This dialog
  • ,Open settings
  • jAI assistant

Search

  • Navigate results
  • Open result
  • escClose

Package

  • mMain information
  • dDocs
  • .Code
  • -Changelog
  • tTimeline
  • sStats
  • vVersions