Skip to content

Commit

Permalink
*fix bug: Error in Base implementation of class SynetDeconvolution16b…
Browse files Browse the repository at this point in the history
…NhwcGemm.
  • Loading branch information
ermig1979 committed Oct 3, 2024
1 parent 9699a32 commit 739d076
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions docs/2024.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ <h5>Improving</h5>
<ul>
<li>AVX-512BW optimizations of function Convolution32fNhwcDepthwiseDefault.</li>
</ul>
<h5>Bug fixing</h5>
<ul>
<li>Error in Base implementation of class SynetDeconvolution16bNhwcGemm.</li>
</ul>

<a href="#HOME">Home</a>
<hr/>
Expand Down
2 changes: 1 addition & 1 deletion src/Simd/SimdBaseSynetDeconvolution16bNhwcGemm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/Simd/SimdSynetDeconvolution16b.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
4 changes: 2 additions & 2 deletions src/Test/TestSynetDeconvolution16b.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 739d076

Please sign in to comment.