addmm¶
dragon.vm.torch.
addmm
(
input,
mat1,
mat2,
beta=1,
alpha=1,
out=None
)[source]¶Add input to the result of matrix-matrix multiplication.
\[\text{out} = \alpha (\text{mat1} \times \text{mat2}) + \beta \text{input} \]- Parameters:
- input (dragon.vm.torch.Tensor) – The input tensor.
- mat1 (dragon.vm.torch.Tensor) – The first matrix.
- mat2 (dragon.vm.torch.Tensor) – The second matrix.
- beta (float, optional, default=1) – The value to \(\beta\).
- alpha (float, optional, default=1) – The value to \(\alpha\).
- out (dragon.vm.torch.Tensor, optional) – The output tensor.
- Returns:
dragon.vm.torch.Tensor – The output tensor.