| diff --git a/tensorflow/lite/nnapi/nnapi_implementation.cc b/tensorflow/lite/nnapi/nnapi_implementation.cc |
| index 4c8c9e24..186f451e 100644 |
| --- a/tensorflow/lite/nnapi/nnapi_implementation.cc |
| +++ b/tensorflow/lite/nnapi/nnapi_implementation.cc |
| @@ -177,7 +177,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 |
| @@ -190,7 +189,6 @@ const NnApi LoadNnApi() { |
| } |
| NNAPI_LOG("nnapi error: unable to open library %s", nnapi_library_name); |
| } |
| -#endif // __ANDROID__ |
| |
| nnapi.nnapi_exists = libneuralnetworks != nullptr; |
| |