Rate this Page

Function torch ::stable::matmul#

Function Documentation#

inline torch::stable::Tensor torch::stable::matmul(const torch::stable::Tensor &self, const torch::stable::Tensor &other)#

Stable version of the matmul op.

Performs matrix multiplication between two tensors. The behavior depends on the dimensionality of the tensors (see PyTorch documentation for details on broadcasting rules for matmul).

Minimum compatible version: PyTorch 2.9.

Parameters:
  • self – The first input tensor.

  • other – The second input tensor.

Returns:

The result of matrix multiplication.