* tflite_benchmark: use get_env_bool instead of getenv
Replace std::getenv by nnfw::util::get_env_bool for USE_NNAPI
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
* Update tflite_benchmark.cc
const auto filename = argv[1];
- bool use_nnapi = false;
+ const bool use_nnapi = nnfw::util::get_env_bool("USE_NNAPI");
const auto thread_count = nnfw::util::get_env_int("THREAD", -1);
- if (std::getenv("USE_NNAPI") != nullptr)
- {
- use_nnapi = true;
- }
-
std::cout << "Num threads: " << thread_count << std::endl;
if (use_nnapi)
{