diff options
author | David Gross <dgross@google.com> | 2017-09-11 17:33:43 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2017-09-11 17:33:43 +0000 |
commit | 7deb155b081d4c4553a465d5910bdd30fb7b72cf (patch) | |
tree | c2a4e3508923f53e60950af32e9ecc56a5292d0d /nn/runtime/test/TestGenerated.cpp | |
parent | bf1e6d1db6bd2372b3c208ee0cbb2d1242464c2e (diff) | |
parent | 83e24dc4706a5b7089881a55daf05b3924fab3b7 (diff) | |
download | ml-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.cpp | 8 |
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) { |