summaryrefslogtreecommitdiff
path: root/nn/runtime/test/TestGenerated.cpp
diff options
context:
space:
mode:
authorI-Jui (Ray) Sung <ijsung@google.com>2017-10-27 12:22:26 -0700
committerI-Jui (Ray) Sung <ijsung@google.com>2017-10-27 12:22:26 -0700
commita1ef918e19d3d66773dfbd6b3ccc6bacfd153a52 (patch)
treeb7344b077452da1e3e9851a9a8269cfaea2da24c /nn/runtime/test/TestGenerated.cpp
parent0f3c0e160045ffe389ae21aff525cc41a1612f8c (diff)
downloadml-a1ef918e19d3d66773dfbd6b3ccc6bacfd153a52.tar.gz
Modernize the test spec of mobilenet_224_gander_basic_fixed
The generated test was in an earlier format for test_generator in which weights were defined as automatic variables. That is now considered a bug. This CL fixes the problem by converting the test spec to a modern test spec. Removed manually written includes in TestGenerated as well. Bug: 68383630 Test: NeuralNetworksTest on Sailfish Change-Id: I4a4325109bb73ab1d63169735e8f1170fe0eaa83
Diffstat (limited to 'nn/runtime/test/TestGenerated.cpp')
-rw-r--r--nn/runtime/test/TestGenerated.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/nn/runtime/test/TestGenerated.cpp b/nn/runtime/test/TestGenerated.cpp
index 27dc04a71..ee39ad245 100644
--- a/nn/runtime/test/TestGenerated.cpp
+++ b/nn/runtime/test/TestGenerated.cpp
@@ -209,15 +209,6 @@ std::vector<Example> examples = {
#include "generated/models/depthwise_conv.model.cpp"
} // namespace depthwise_conv
-namespace mobilenet {
-std::vector<Example> examples = {
-// Converted examples
-#include "generated/examples/mobilenet_224_gender_basic_fixed_tests.example.cc"
-};
-// Generated model constructor
-#include "generated/models/mobilenet_224_gender_basic_fixed.model.cpp"
-} // namespace mobilenet
-
namespace {
bool Execute(std::function<void(Model*)> create_model,
std::vector<Example>& examples) {
@@ -257,6 +248,3 @@ TEST_F(GeneratedTests, depthwise_conv) {
0);
}
-TEST_F(GeneratedTests, mobilenet) {
- ASSERT_EQ(Execute(mobilenet::CreateModel, mobilenet::examples), 0);
-}