Function linear

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

    Parameters

    • input: Tensor

      (*, inFeatures) where * means any number of additional dimensions, including none

    • weight: Tensor

      (outFeatures, inFeatures) or (inFeatures)

    • Optional bias: Tensor

      (outFeatures) or ()

    Returns Tensor

    (*, outFeatures) or (*), based on the shape of the weight

Generated using TypeDoc