blob: 182636fa36852f85beebea3af2c5b5da02bbbdb3 [file] [edit]
diff --git a/tensorflow/lite/nnapi/nnapi_implementation.cc b/tensorflow/lite/nnapi/nnapi_implementation.cc
index aa332ca9d39..d8535b4458e 100644
--- a/tensorflow/lite/nnapi/nnapi_implementation.cc
+++ b/tensorflow/lite/nnapi/nnapi_implementation.cc
@@ -197,7 +197,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
@@ -210,7 +209,6 @@ const NnApi LoadNnApi() {
}
NNAPI_LOG("nnapi error: unable to open library %s", nnapi_library_name);
}
-#endif // __ANDROID__
nnapi.nnapi_exists = libneuralnetworks != nullptr;