Add support library compabibility layer This change provides a new "libneuralnetworks_cl" static library that contains a version of the NNAPI runtime wihout non-NDK dependencies. Vendors can link against this library to create support library drivers. This change introduces new preprocessor symbols: - NN_COMPATIBILITY_LIBRARY_BUILD - NN_NO_AHWB - NN_NO_BURST The last two temporarily limit corresponding runtime features and should be removed by later changes. If NN_COMPATIBILITY_LIBRARY_BUILD is defined, then NN_NO_AHWB and NN_NO_BURST should be defined and NN_INCLUDE_CPU_IMPLEMENTATION should be undefined. Bug: 160667944 Bug: 170289677 Test: NNT_static Change-Id: I5685d0e46dc9461d62815f61dddd5fc7aedf3762 Merged-In: I5685d0e46dc9461d62815f61dddd5fc7aedf3762 (cherry picked from commit 8c4917bbc4c123778d9c4d0b9a5df79897fc4051)
diff --git a/common/operations/LSTM.cpp b/common/operations/LSTM.cpp index e64d0c4..5c16ccf 100644 --- a/common/operations/LSTM.cpp +++ b/common/operations/LSTM.cpp
@@ -18,13 +18,15 @@ #include "LSTM.h" +#include <tensorflow/lite/kernels/internal/tensor_utils.h> + #include <vector> #include "CpuExecutor.h" #include "CpuOperationUtils.h" +#include "LegacyUtils.h" #include "OperationsUtils.h" #include "Tracing.h" -#include "Utils.h" #include "nnapi/Types.h" namespace android {