summaryrefslogtreecommitdiff
path: root/nn/runtime/test/TestGenerated.cpp
diff options
context:
space:
mode:
authorMika Raento <mikie@google.com>2018-04-17 14:09:53 +0100
committerMika Raento <mikie@google.com>2018-05-09 18:20:39 +0100
commitae810c769a094951c2349563fae63518b9a78fa4 (patch)
tree0f07562906869ac41b71445724495b12b1c014ce /nn/runtime/test/TestGenerated.cpp
parent2f07da0e78cb5d105ad67c50dd888a0256797966 (diff)
downloadml-ae810c769a094951c2349563fae63518b9a78fa4.tar.gz
Add test for dimensions unknown at compile time
Adds a test for operands which have one or more unknown dimensions at compile time but are fully known at execution time. This is meant to be supported but had a bug earlier. Bug: 72448000 Test: NeuralNetworksTest_static (emulator) Change-Id: I7ad5e6b6c29f8fe45098c9291d6a2d4b00c58eb8 Merged-In: I7ad5e6b6c29f8fe45098c9291d6a2d4b00c58eb8 (cherry picked from commit 951a1eeb114a6aacc87d6df67b9090bb94afe3bf)
Diffstat (limited to 'nn/runtime/test/TestGenerated.cpp')
-rw-r--r--nn/runtime/test/TestGenerated.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/nn/runtime/test/TestGenerated.cpp b/nn/runtime/test/TestGenerated.cpp
index e584044c6..c0a5f4cab 100644
--- a/nn/runtime/test/TestGenerated.cpp
+++ b/nn/runtime/test/TestGenerated.cpp
@@ -33,6 +33,7 @@
namespace generated_tests {
using namespace android::nn::wrapper;
+using namespace test_helper;
void graphDump([[maybe_unused]] const char* name, [[maybe_unused]] const Model& model) {
#ifdef GRAPH
@@ -132,14 +133,15 @@ static void execute(std::function<void(Model*)> createModel,
using namespace android::nn::wrapper;
// Mixed-typed examples
-typedef generated_tests::MixedTypedExampleType MixedTypedExample;
+typedef test_helper::MixedTypedExampleType MixedTypedExample;
class GeneratedTests : public ::testing::Test {
- protected:
+protected:
virtual void SetUp() {}
};
// Testcases generated from runtime/test/specs/*.mod.py
+using namespace test_helper;
using namespace generated_tests;
#include "generated/all_generated_tests.cpp"
// End of testcases generated from runtime/test/specs/*.mod.py