diff options
Diffstat (limited to 'tools/nnapi_quickcheck/tests/add_3.cpp')
-rw-r--r-- | tools/nnapi_quickcheck/tests/add_3.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/tools/nnapi_quickcheck/tests/add_3.cpp b/tools/nnapi_quickcheck/tests/add_3.cpp index a7b2f436e..a2aa12141 100644 --- a/tools/nnapi_quickcheck/tests/add_3.cpp +++ b/tools/nnapi_quickcheck/tests/add_3.cpp @@ -16,14 +16,14 @@ #include "gtest/gtest.h" -#include "tflite/kernels/register.h" +#include "tflite/ext/kernels/register.h" #include "tensorflow/contrib/lite/model.h" #include "tensorflow/contrib/lite/builtin_op_data.h" #include "env.h" #include "memory.h" -#include "util/environment.h" +#include "misc/environment.h" #include "tflite/Diff.h" #include "tflite/TensorShapeUtils.h" @@ -36,14 +36,14 @@ #include <random> using namespace tflite; -using namespace tflite::ops::builtin; +using namespace nnfw::tflite; TEST(NNAPI_Quickcheck_add_3, simple_test) { // Set random seed int SEED = std::chrono::system_clock::now().time_since_epoch().count(); - nnfw::util::env::IntAccessor("SEED").access(SEED); + nnfw::misc::env::IntAccessor("SEED").access(SEED); // Initialize random number generator std::minstd_rand random(SEED); @@ -52,9 +52,9 @@ TEST(NNAPI_Quickcheck_add_3, simple_test) #include "add_3.lst" #undef STR_VALUE - const auto LHS_SHAPE = nnfw::util::tensor::Shape::from(LHS_SHAPE_Value()); - const auto RHS_SHAPE = nnfw::util::tensor::Shape::from(RHS_SHAPE_Value()); - const auto OUT_SHAPE = nnfw::support::tflite::broadcast(LHS_SHAPE, RHS_SHAPE); + const auto LHS_SHAPE = nnfw::misc::tensor::Shape::from(LHS_SHAPE_Value()); + const auto RHS_SHAPE = nnfw::misc::tensor::Shape::from(RHS_SHAPE_Value()); + const auto OUT_SHAPE = nnfw::tflite::broadcast(LHS_SHAPE, RHS_SHAPE); std::cout << "Configurations:" << std::endl; #define PRINT_NEWLINE() \ @@ -75,7 +75,7 @@ TEST(NNAPI_Quickcheck_add_3, simple_test) #undef PRINT_NEWLINE auto setup = [&](Interpreter &interp) { - using nnfw::support::tflite::as_dims; + using nnfw::tflite::as_dims; // Comment from 'context.h' // @@ -121,15 +121,15 @@ TEST(NNAPI_Quickcheck_add_3, simple_test) interp.SetOutputs({0}); }; - const nnfw::support::tflite::interp::FunctionBuilder builder(setup); + const nnfw::tflite::FunctionBuilder builder(setup); RandomTestParam param; param.verbose = 0; param.tolerance = 1; - nnfw::util::env::IntAccessor("VERBOSE").access(param.verbose); - nnfw::util::env::IntAccessor("TOLERANCE").access(param.tolerance); + nnfw::misc::env::IntAccessor("VERBOSE").access(param.verbose); + nnfw::misc::env::IntAccessor("TOLERANCE").access(param.tolerance); int res = RandomTestRunner{SEED, param}.run(builder); |