blob: 1ae2641badb19b7258e5e07899f3075788ec060f [file] [log] [blame]
diff --git a/tensorflow/lite/nnapi/nnapi_implementation.cc b/tensorflow/lite/nnapi/nnapi_implementation.cc
index c067bdd6..53aeaf19 100644
--- a/tensorflow/lite/nnapi/nnapi_implementation.cc
+++ b/tensorflow/lite/nnapi/nnapi_implementation.cc
@@ -176,7 +176,6 @@ const NnApi LoadNnApi() {
// instances of nn api RT
static const char nnapi_library_name[] = "libneuralnetworks.so";
libneuralnetworks = dlopen(nnapi_library_name, RTLD_LAZY | RTLD_LOCAL);
-#ifdef __ANDROID__
// Note: If there is an problem trying to open the NNAPI library on a
// non-Android system, the error message is suppressed. This is to avoid
// showing confusing errors when running in environments that do not support
@@ -189,7 +188,6 @@ const NnApi LoadNnApi() {
}
NNAPI_LOG("nnapi error: unable to open library %s", nnapi_library_name);
}
-#endif // __ANDROID__
nnapi.nnapi_exists = libneuralnetworks != nullptr;