mirror of
https://github.com/opencv/opencv.git
synced 2026-11-26 03:18:11 -06:00
Merge pull request #16156 from TH3CHARLie:3.4
* Eltwise::DIV support in Halide backend * fix typo * remove div from generated test suite to pass CI, switching to manual test... * ensure divisor not near to zero * use randu * dnn(test): update test data for Eltwise.Accuracy/DIV layer test
This commit is contained in:
committed by
Alexander Alekhin
parent
60f81032bb
commit
3d60a9b96c
@@ -638,6 +638,12 @@ public:
|
||||
for (int i = 2; i < inputBuffers.size(); ++i)
|
||||
topExpr *= inputBuffers[i](x, y, c, n);
|
||||
break;
|
||||
case DIV:
|
||||
topExpr = inputBuffers[0](x, y, c, n) /
|
||||
inputBuffers[1](x, y, c, n);
|
||||
for (int i = 2; i < inputBuffers.size(); ++i)
|
||||
topExpr /= inputBuffers[i](x, y, c, n);
|
||||
break;
|
||||
case MAX:
|
||||
topExpr = max(inputBuffers[0](x, y, c, n),
|
||||
inputBuffers[1](x, y, c, n));
|
||||
|
||||
Reference in New Issue
Block a user