1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-31 00:03:03 +04:00

Merge pull request #23557 from WanliZhong:eltwise_cpu_bug

fix nary elementwise bug in cpu
This commit is contained in:
Alexander Smorkalov
2023-05-11 15:56:46 +03:00
committed by GitHub
2 changed files with 113 additions and 1 deletions
@@ -51,6 +51,8 @@ public:
WHERE,
} op;
// If the eltwise implementation is modified, you need to force enable the 'Layer_Test_Eltwise_bcast'
// test in the 'test_layers.cpp' file to make sure it all passes
NaryEltwiseLayerImpl(const LayerParams& params)
{
setParamsFrom(params);
@@ -350,7 +352,6 @@ public:
size_t dp1 = steps[1][ndims-1]/sizeof(T);
size_t dp2 = steps[2][ndims-1]/sizeof(T);
CV_Assert(dp == 1);
enum { BLOCK_SIZE = 1024 };
T blck[BLOCK_SIZE];