OSDN Git Service
(root)
/
android-x86
/
hardware-interfaces.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Relax tolerance for FP comparison in test harness
[android-x86/hardware-interfaces.git]
/
neuralnetworks
/
1.0
/
vts
/
functional
/
GeneratedTestHarness.cpp
diff --git
a/neuralnetworks/1.0/vts/functional/GeneratedTestHarness.cpp
b/neuralnetworks/1.0/vts/functional/GeneratedTestHarness.cpp
index
2f557f8
..
9c85c8c
100644
(file)
--- 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,
auto& test_float = test_float_operands[index];
for (unsigned int i = 0; i < golden_float.size(); i++) {
SCOPED_TRACE(i);
- EXPECT_
FLOAT_EQ(golden_float[i], test_float[i]
);
+ EXPECT_
NEAR(golden_float[i], test_float[i], 1.e-5
);
}
});