Skip to content

Commit 34ce393

Browse files
committed
tests(reduction): add test for issue #25095 verifying noop_with_empty_axes behavior
1 parent 8f0f4df commit 34ce393

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

onnxruntime/test/providers/cpu/reduction/reduction_ops_test.cc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6295,5 +6295,16 @@ TEST(ReductionOpTest, ReduceLogSumExp_NoopWithEmptyAxes_3D_Identity) {
62956295
test.Run();
62966296
}
62976297

6298+
TEST(ReductionOpTest, ReduceSumSquare_NoopWithAxesNotProvided_ElementwiseSquare) {
6299+
OpTester test("ReduceSumSquare", 18);
6300+
test.AddInput<float>("data", {2}, {2.f, 3.f});
6301+
test.AddAttribute<int64_t>("noop_with_empty_axes", 1);
6302+
test.AddOutput<float>("reduced", {2}, {4.f, 9.f});
6303+
test.Run();
6304+
}
6305+
6306+
6307+
6308+
62986309
} // namespace test
62996310
} // namespace onnxruntime

0 commit comments

Comments
 (0)