diff --git a/tensorflow/lite/micro/kernels/svdf.cc b/tensorflow/lite/micro/kernels/svdf.cc index ec8e1426f71..1b797a22989 100644 --- a/tensorflow/lite/micro/kernels/svdf.cc +++ b/tensorflow/lite/micro/kernels/svdf.cc @@ -13,6 +13,8 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ +#include "tensorflow/lite/micro/kernels/svdf.h" + #include #include "tensorflow/lite/c/builtin_op_data.h" @@ -24,7 +26,6 @@ limitations under the License. #include "tensorflow/lite/kernels/op_macros.h" #include "tensorflow/lite/micro/kernels/activation_utils.h" #include "tensorflow/lite/micro/kernels/kernel_util.h" -#include "tensorflow/lite/micro/kernels/svdf.h" #include "tensorflow/lite/micro/micro_utils.h" namespace tflite { diff --git a/tensorflow/lite/micro/kernels/svdf.h b/tensorflow/lite/micro/kernels/svdf.h index 2bd0d1628dc..b10ede6b2f3 100644 --- a/tensorflow/lite/micro/kernels/svdf.h +++ b/tensorflow/lite/micro/kernels/svdf.h @@ -15,6 +15,7 @@ limitations under the License. #ifndef TENSORFLOW_LITE_MICRO_KERNELS_SVDF_H_ #define TENSORFLOW_LITE_MICRO_KERNELS_SVDF_H_ +#include "tensorflow/lite/c/builtin_op_data.h" #include "tensorflow/lite/c/common.h" namespace tflite { @@ -34,7 +35,6 @@ struct OpData { int output_zero_point; }; - // TensorflowLite Micro-specific reference implementation for Integer SVDF. void EvalIntegerSvdfReference(TfLiteContext* context, TfLiteNode* node, const TfLiteEvalTensor* input_tensor, diff --git a/tensorflow/lite/micro/kernels/svdf_common.cc b/tensorflow/lite/micro/kernels/svdf_common.cc index 06512e87e78..5c66d2cfd47 100644 --- a/tensorflow/lite/micro/kernels/svdf_common.cc +++ b/tensorflow/lite/micro/kernels/svdf_common.cc @@ -12,7 +12,6 @@ #include "tensorflow/lite/micro/kernels/svdf.h" #include "tensorflow/lite/micro/micro_utils.h" - namespace tflite { void EvalIntegerSvdfReference(TfLiteContext* context, TfLiteNode* node, diff --git a/tensorflow/lite/micro/kernels/xtensa/svdf.cc b/tensorflow/lite/micro/kernels/xtensa/svdf.cc index 5c3e14b5a7f..33489e6b44f 100644 --- a/tensorflow/lite/micro/kernels/xtensa/svdf.cc +++ b/tensorflow/lite/micro/kernels/xtensa/svdf.cc @@ -13,6 +13,8 @@ See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ +#include "tensorflow/lite/micro/kernels/svdf.h" + #include #include @@ -25,7 +27,6 @@ limitations under the License. #include "tensorflow/lite/kernels/op_macros.h" #include "tensorflow/lite/micro/kernels/activation_utils.h" #include "tensorflow/lite/micro/kernels/kernel_util.h" -#include "tensorflow/lite/micro/kernels/svdf.h" #include "tensorflow/lite/micro/kernels/xtensa/fixedpoint_utils.h" namespace tflite { @@ -398,8 +399,8 @@ TfLiteStatus Eval(TfLiteContext* context, TfLiteNode* node) { EvalIntegerSVDF(context, node, input, weights_feature, weights_time, bias, params, activation_state, output, data); #else - EvalIntegerSvdfReference(context, node, input, weights_feature, weights_time, bias, - params, activation_state, output, data); + EvalIntegerSvdfReference(context, node, input, weights_feature, weights_time, + bias, params, activation_state, output, data); #endif return kTfLiteOk; }