MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / gemv_like

Function gemv_like

dnn/src/arm_common/matrix_mul/fp32/exec_sgemv.cpp:797–812  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

795namespace arm_common {
796
797void gemv_like(
798 const float* __restrict A, const float* __restrict B, float* __restrict C,
799 size_t M, size_t N, size_t K, size_t Astride, size_t Bstride, size_t Cstride) {
800 megdnn_assert(M < 8 || (M == 8 && K <= 2) || (N == 1 && Bstride == 1));
801 if (N == 1) {
802 MIDOUT_BEGIN(megdnn_fp32_sgemv, midout_iv("F32_GEMV_NCHW_N"_hash)) {
803 return sgemv_naive_n(A, B, C, M, N, K, Astride, Bstride, Cstride);
804 }
805 MIDOUT_END();
806 } else {
807 MIDOUT_BEGIN(megdnn_fp32_sgemv, midout_iv("F32_GEMV_NCHW_M"_hash)) {
808 return sgemv_naive_m(A, B, C, M, N, K, Astride, Bstride, Cstride);
809 }
810 MIDOUT_END();
811 }
812}
813
814void gemv_like_mk4(
815 const float* __restrict A, const float* __restrict B, float* __restrict C,

Callers 4

int8x8x32_gemv_kernFunction · 0.50
f32_gemv_kernFunction · 0.50
gevm_like_kernFunction · 0.50
MIDOUT_BEGINFunction · 0.50

Calls 3

sgemv_naive_nFunction · 0.85
sgemv_naive_mFunction · 0.85
MIDOUT_BEGINFunction · 0.50

Tested by

no test coverage detected