From 739d07680d04e08c2df26af52a4b02d391d5deff Mon Sep 17 00:00:00 2001 From: Yermalayeu Ihar Date: Thu, 3 Oct 2024 16:37:02 +0300 Subject: [PATCH] *fix bug: Error in Base implementation of class SynetDeconvolution16bNhwcGemm. --- docs/2024.html | 4 ++++ src/Simd/SimdBaseSynetDeconvolution16bNhwcGemm.cpp | 2 +- src/Simd/SimdSynetDeconvolution16b.h | 2 +- src/Test/TestSynetDeconvolution16b.cpp | 4 ++-- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/docs/2024.html b/docs/2024.html index 41afcbf7fd..cb6494955b 100644 --- a/docs/2024.html +++ b/docs/2024.html @@ -41,6 +41,10 @@
Improving
+
Bug fixing
+ Home
diff --git a/src/Simd/SimdBaseSynetDeconvolution16bNhwcGemm.cpp b/src/Simd/SimdBaseSynetDeconvolution16bNhwcGemm.cpp index 9d9a71af0b..6f29cdb2bb 100644 --- a/src/Simd/SimdBaseSynetDeconvolution16bNhwcGemm.cpp +++ b/src/Simd/SimdBaseSynetDeconvolution16bNhwcGemm.cpp @@ -57,7 +57,7 @@ namespace Simd return size; } - void SynetDeconvolution16bNhwcGemm::SetAlgParam(size_t F, size_t microM, size_t microN, size_t microK, size_t L1, size_t L2, size_t L3) + void SynetDeconvolution16bNhwcGemm::SetAlgParam(size_t F, size_t microN, size_t microM, size_t microK, size_t L1, size_t L2, size_t L3) { const DeconvParam& p = _param; AlgParam& a = _alg; diff --git a/src/Simd/SimdSynetDeconvolution16b.h b/src/Simd/SimdSynetDeconvolution16b.h index f5feee847a..8545516749 100644 --- a/src/Simd/SimdSynetDeconvolution16b.h +++ b/src/Simd/SimdSynetDeconvolution16b.h @@ -147,7 +147,7 @@ namespace Simd typedef void(*BiasActPtr)(const float* src, const DeconvParam& p, const AlgParam& a, size_t dstC, size_t yBeg, size_t yEnd, const float* bias, const float* params, uint8_t* dst); protected: - void SetAlgParam(size_t F, size_t microD, size_t microN, size_t microK, size_t L1, size_t L2, size_t L3); + void SetAlgParam(size_t F, size_t microN, size_t microM, size_t microK, size_t L1, size_t L2, size_t L3); void ForwardCommon(const uint8_t* src, uint16_t* bufS, float* bufB, float* bufD, uint8_t* dst); void GemmCommon(const uint16_t* src, float* dst); diff --git a/src/Test/TestSynetDeconvolution16b.cpp b/src/Test/TestSynetDeconvolution16b.cpp index c33299a77e..5a15583f94 100644 --- a/src/Test/TestSynetDeconvolution16b.cpp +++ b/src/Test/TestSynetDeconvolution16b.cpp @@ -195,8 +195,8 @@ namespace Test #endif #else #if 1 - //result = result && SynetDeconvolution16bForwardAutoTest(eps, Param(1, 720, 192, 256, 64, _4, _1, _2, _1, _1, 1, aId, tF, f32, f32), c, f1, f2); - result = result && SynetDeconvolution16bForwardAutoTest(eps, Param(1, 24, 12, 16, 32, _2, _1, _1, _1, _1, 1, aId, tT, f32, f32), c, f1, f2); + result = result && SynetDeconvolution16bForwardAutoTest(eps, Param(1, 720, 192, 256, 64, _4, _1, _2, _1, _1, 1, aId, tT, f32, f32), c, f1, f2); + //result = result && SynetDeconvolution16bForwardAutoTest(eps, Param(1, 24, 12, 16, 32, _2, _1, _1, _1, _1, 1, aId, tT, f32, f32), c, f1, f2); #endif #endif