From 3e64ecc34723dedeb5a5a26bd52e8105796604dd Mon Sep 17 00:00:00 2001 From: Xusong Wang Date: Mon, 16 Mar 2020 17:13:41 -0700 Subject: [PATCH] Exclude invalid test models from QuantizationCouplingTest. Bug: 151674996 Test: 1.3 VTS Change-Id: I381eb6d39926054279f1791bd71d28a963acc0b9 Merged-In: I381eb6d39926054279f1791bd71d28a963acc0b9 (cherry picked from commit 962fdb26ca3f7fea5ea66a8368965f87aa87e8ee) --- neuralnetworks/1.3/vts/functional/GeneratedTestHarness.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/neuralnetworks/1.3/vts/functional/GeneratedTestHarness.cpp b/neuralnetworks/1.3/vts/functional/GeneratedTestHarness.cpp index aae58bfb3e..5689a39e1b 100644 --- a/neuralnetworks/1.3/vts/functional/GeneratedTestHarness.cpp +++ b/neuralnetworks/1.3/vts/functional/GeneratedTestHarness.cpp @@ -952,7 +952,8 @@ INSTANTIATE_GENERATED_TEST(FencedComputeTest, [](const TestModel& testModel) { return !testModel.expectFailure; }); INSTANTIATE_GENERATED_TEST(QuantizationCouplingTest, [](const TestModel& testModel) { - return testModel.hasQuant8CoupledOperands() && testModel.main.operations.size() == 1; + return !testModel.expectFailure && testModel.hasQuant8CoupledOperands() && + testModel.main.operations.size() == 1; }); INSTANTIATE_GENERATED_TEST(InfiniteLoopTimeoutTest, [](const TestModel& testModel) {