ONE - On-device Neural Engine
Loading...
Searching...
No Matches
GEMM.h File Reference
#include "Eigen/Core"

Go to the source code of this file.

Functions

template<typename Lhs , typename Rhs , typename Result >
void Gemm (const Eigen::MatrixBase< Lhs > &lhs, const Eigen::MatrixBase< Rhs > &rhs, Eigen::MatrixBase< Result > *result)
 

Function Documentation

◆ Gemm()

template<typename Lhs , typename Rhs , typename Result >
void Gemm ( const Eigen::MatrixBase< Lhs > &  lhs,
const Eigen::MatrixBase< Rhs > &  rhs,
Eigen::MatrixBase< Result > *  result 
)

Definition at line 24 of file GEMM.h.

26{
27 if (rhs.cols() == 1)
28 {
29 result->col(0).noalias() = lhs * rhs.col(0);
30 }
31 else
32 {
33 result->noalias() = lhs * rhs;
34 }
35}
result
Definition infer.py:103

Referenced by Conv(), FullyConnected(), and mir_onnx::registerSupportedOps().