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

Merge pull request #28574 from abhishek-gola:reduce_layer_empty_set

* added empty set support

* accept unnamed dynamic dims

* Fix for LSTM test failure

* removed converToND

* openvino failing test fix

* ARM CI issue fix

* ARM issue fix
This commit is contained in:
Abhishek Gola
2026-03-01 17:49:44 +05:30
committed by GitHub
parent b54d0fbbbf
commit 31cab2a055
10 changed files with 141 additions and 40 deletions
+9
View File
@@ -95,6 +95,15 @@ void normAssert(
testMat = testMat.reshape(1, oneShape);
}
// Empty tensors are valid for ONNX conformance tests. Avoid 0/0 in normL1
// and verify emptiness compatibility directly.
if (refMat.total() == 0 || testMat.total() == 0)
{
EXPECT_EQ(refMat.total(), testMat.total()) << comment;
EXPECT_EQ(refMat.size, testMat.size) << comment;
return;
}
double normL1 = cvtest::norm(refMat, testMat, cv::NORM_L1) / refMat.total();
EXPECT_LE(normL1, l1) << comment << " |ref| = " << cvtest::norm(refMat, cv::NORM_INF);