affine

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

Apply affine transformation to input.

\[\text{out} = \text{input} \times \text{weight} + \text{bias} \]
Parameters:
Returns:

dragon.vm.torch.Tensor The output tensor.