affine

dragon.vm.torch.nn.functional.affine(
  input,
  weight,
  bias=None
)[source]

Apply the affine transformation to input.

\[y = Ax + b \]
Parameters:
Returns:

dragon.vm.torch.Tensor – The output tensor.