diff options
author | Ray Sung | 2017-09-13 19:53:27 -0500 |
---|---|---|
committer | Android (Google) Code Review | 2017-09-13 19:53:27 -0500 |
commit | 43850470492db39351938d913590c8230fe110b8 (patch) | |
tree | d0a0814cb3249a53a9bfccb0a48c51e8b45b3496 /neuralnetworks/1.0/vts | |
parent | 5ea3ece7ca99dae31b5e505c267a54906556bafc (diff) | |
parent | 773369a372b7d90d89c6c4dd5782907789d69797 (diff) | |
download | platform-hardware-interfaces-43850470492db39351938d913590c8230fe110b8.tar.gz platform-hardware-interfaces-43850470492db39351938d913590c8230fe110b8.tar.xz platform-hardware-interfaces-43850470492db39351938d913590c8230fe110b8.zip |
Merge "Relax tolerance for FP comparison in test harness" into oc-mr1-dev
Diffstat (limited to 'neuralnetworks/1.0/vts')
-rw-r--r-- | neuralnetworks/1.0/vts/functional/GeneratedTestHarness.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/neuralnetworks/1.0/vts/functional/GeneratedTestHarness.cpp b/neuralnetworks/1.0/vts/functional/GeneratedTestHarness.cpp index 2f557f87..9c85c8c2 100644 --- a/neuralnetworks/1.0/vts/functional/GeneratedTestHarness.cpp +++ b/neuralnetworks/1.0/vts/functional/GeneratedTestHarness.cpp | |||
@@ -172,7 +172,7 @@ void Execute(const sp<IDevice>& device, std::function<Model(void)> create_model, | |||
172 | auto& test_float = test_float_operands[index]; | 172 | auto& test_float = test_float_operands[index]; |
173 | for (unsigned int i = 0; i < golden_float.size(); i++) { | 173 | for (unsigned int i = 0; i < golden_float.size(); i++) { |
174 | SCOPED_TRACE(i); | 174 | SCOPED_TRACE(i); |
175 | EXPECT_FLOAT_EQ(golden_float[i], test_float[i]); | 175 | EXPECT_NEAR(golden_float[i], test_float[i], 1.e-5); |
176 | } | 176 | } |
177 | }); | 177 | }); |
178 | 178 | ||