summaryrefslogtreecommitdiff
path: root/nn/runtime/test/TestGenerated.cpp
diff options
context:
space:
mode:
authorDavid Gross <dgross@google.com>2017-09-11 17:33:43 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2017-09-11 17:33:43 +0000
commit7deb155b081d4c4553a465d5910bdd30fb7b72cf (patch)
treec2a4e3508923f53e60950af32e9ecc56a5292d0d /nn/runtime/test/TestGenerated.cpp
parentbf1e6d1db6bd2372b3c208ee0cbb2d1242464c2e (diff)
parent83e24dc4706a5b7089881a55daf05b3924fab3b7 (diff)
downloadml-7deb155b081d4c4553a465d5910bdd30fb7b72cf.tar.gz
Merge "Add compilation APIs." into oc-mr1-dev
Diffstat (limited to 'nn/runtime/test/TestGenerated.cpp')
-rw-r--r--nn/runtime/test/TestGenerated.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/nn/runtime/test/TestGenerated.cpp b/nn/runtime/test/TestGenerated.cpp
index a65de99fa..0ae2fbb83 100644
--- a/nn/runtime/test/TestGenerated.cpp
+++ b/nn/runtime/test/TestGenerated.cpp
@@ -45,7 +45,9 @@ class Example {
int example_no = 1;
bool error = false;
for (auto& example : examples) {
- Request request(&model);
+ Compilation compilation(&model);
+ compilation.compile();
+ Request request(&compilation);
// Go through all inputs
for (auto& i : example.first) {
@@ -103,7 +105,9 @@ class Example {
MixedTyped& inputs = example.first;
MixedTyped& golden = example.second;
- Request request(&model);
+ Compilation compilation(&model);
+ compilation.compile();
+ Request request(&compilation);
// Go through all ty-typed inputs
for_all(inputs, [&request](int idx, auto p, auto s) {