bmm¶
dragon.vm.torch.
bmm
(
input,
mat2,
out=None
)[source]¶Compute the batched matrix-matrix multiplication.
\[\text{out}_{i} = \text{input}_{i} \times \text{mat2}_{i} \]- Parameters:
- input (dragon.vm.torch.Tensor) – The first batch of matrices.
- mat2 (dragon.vm.torch.Tensor) – The second batch of matrices.
- out (dragon.vm.torch.Tensor, optional) – The output tensor.
- Returns:
dragon.vm.torch.Tensor – The output tensor.