Skip to content

Commit 7120f3b

Browse files
authored
Sync from tflite-micro. (tensorflow#180)
1 parent 94c2939 commit 7120f3b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/tensorflow/lite/kernels/kernel_util.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ TfLiteStatus GetOutputShapeFromInput(TfLiteContext* context,
436436
// that build. What appears to be happening is that while the linker drops the
437437
// unsused function, the string library that gets pulled in is not dropped,
438438
// resulting in the increased binary size.
439-
const std::string GetShapeDebugString(const TfLiteIntArray* shape) {
439+
std::string GetShapeDebugString(const TfLiteIntArray* shape) {
440440
std::string str;
441441
for (int d = 0; d < shape->size; ++d) {
442442
if (str.empty())

src/tensorflow/lite/kernels/kernel_util.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ TfLiteStatus GetOutputShapeFromInput(TfLiteContext* context,
297297
const TfLiteTensor* input,
298298
TfLiteIntArray** output_shape);
299299

300-
const std::string GetShapeDebugString(const TfLiteIntArray* shape);
300+
std::string GetShapeDebugString(const TfLiteIntArray* shape);
301301

302302
#endif // !defined(ARDUINO)
303303

src/tensorflow/lite/micro/kernels/pooling.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright 2022 The TensorFlow Authors. All Rights Reserved.
1+
/* Copyright 2023 The TensorFlow Authors. All Rights Reserved.
22
33
Licensed under the Apache License, Version 2.0 (the "License");
44
you may not use this file except in compliance with the License.
@@ -112,7 +112,7 @@ void MaxPoolingEvalQuantized(TfLiteContext* context, TfLiteNode* node,
112112
tflite::micro::GetTensorData<T>(output));
113113
}
114114

115-
#if defined(ARDUINO)
115+
#if defined(ARDUINO) || defined(XTENSA)
116116
TfLiteRegistration Register_AVERAGE_POOL_2D_INT8();
117117

118118
TfLiteRegistration Register_MAX_POOL_2D_INT8();

0 commit comments

Comments
 (0)