mirror of
https://github.com/opencv/opencv.git
synced 2026-09-13 05:42:51 -05:00
Merge pull request #22656 from dkurt:halide_fixes
* Fixes for Halide * Enable some Halide tests
This commit is contained in:
@@ -1173,6 +1173,12 @@ public:
|
||||
// Halide::argmax returns tuple (r.x, r.y, max).
|
||||
Halide::Tuple res = argmax(inputBuffer(kx, ky, c, n));
|
||||
|
||||
if (!computeMaxIdx)
|
||||
{
|
||||
top(x, y, c, n) = res[2];
|
||||
return Ptr<BackendNode>(new HalideBackendNode(top));
|
||||
}
|
||||
|
||||
// Compute offset from argmax in range [0, kernel_size).
|
||||
Halide::Expr max_index;
|
||||
if(paddingLeft || paddingTop)
|
||||
|
||||
Reference in New Issue
Block a user