diff --git a/mindspore/lite/src/runtime/kernel/arm/nnacl/optimized_kernel.h b/mindspore/lite/src/runtime/kernel/arm/nnacl/optimized_kernel.h index 87f0c03dfda..79b27eea264 100644 --- a/mindspore/lite/src/runtime/kernel/arm/nnacl/optimized_kernel.h +++ b/mindspore/lite/src/runtime/kernel/arm/nnacl/optimized_kernel.h @@ -62,10 +62,10 @@ class OptimizeModule { } #ifndef _WIN32 optimized_op_handler_ = dlopen(OPTIMIZE_SHARED_LIBRARY_PATH, RTLD_LAZY); -#endif if (optimized_op_handler_ == nullptr) { printf("Open optimize shared library failed: %s\n", dlerror()); } +#endif } ~OptimizeModule() = default;