clang-format + fix missing header that caused a build-error after clang-formatting.
This commit is contained in:
parent
6b24408403
commit
d2fd64fcfb
@ -13,6 +13,8 @@ See the License for the specific language governing permissions and
|
|||||||
limitations under the License.
|
limitations under the License.
|
||||||
==============================================================================*/
|
==============================================================================*/
|
||||||
|
|
||||||
|
#include "tensorflow/lite/micro/kernels/svdf.h"
|
||||||
|
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
#include "tensorflow/lite/c/builtin_op_data.h"
|
#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/kernels/op_macros.h"
|
||||||
#include "tensorflow/lite/micro/kernels/activation_utils.h"
|
#include "tensorflow/lite/micro/kernels/activation_utils.h"
|
||||||
#include "tensorflow/lite/micro/kernels/kernel_util.h"
|
#include "tensorflow/lite/micro/kernels/kernel_util.h"
|
||||||
#include "tensorflow/lite/micro/kernels/svdf.h"
|
|
||||||
#include "tensorflow/lite/micro/micro_utils.h"
|
#include "tensorflow/lite/micro/micro_utils.h"
|
||||||
|
|
||||||
namespace tflite {
|
namespace tflite {
|
||||||
|
@ -15,6 +15,7 @@ limitations under the License.
|
|||||||
#ifndef TENSORFLOW_LITE_MICRO_KERNELS_SVDF_H_
|
#ifndef TENSORFLOW_LITE_MICRO_KERNELS_SVDF_H_
|
||||||
#define 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"
|
#include "tensorflow/lite/c/common.h"
|
||||||
|
|
||||||
namespace tflite {
|
namespace tflite {
|
||||||
@ -34,7 +35,6 @@ struct OpData {
|
|||||||
int output_zero_point;
|
int output_zero_point;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
// TensorflowLite Micro-specific reference implementation for Integer SVDF.
|
// TensorflowLite Micro-specific reference implementation for Integer SVDF.
|
||||||
void EvalIntegerSvdfReference(TfLiteContext* context, TfLiteNode* node,
|
void EvalIntegerSvdfReference(TfLiteContext* context, TfLiteNode* node,
|
||||||
const TfLiteEvalTensor* input_tensor,
|
const TfLiteEvalTensor* input_tensor,
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
#include "tensorflow/lite/micro/kernels/svdf.h"
|
#include "tensorflow/lite/micro/kernels/svdf.h"
|
||||||
#include "tensorflow/lite/micro/micro_utils.h"
|
#include "tensorflow/lite/micro/micro_utils.h"
|
||||||
|
|
||||||
|
|
||||||
namespace tflite {
|
namespace tflite {
|
||||||
|
|
||||||
void EvalIntegerSvdfReference(TfLiteContext* context, TfLiteNode* node,
|
void EvalIntegerSvdfReference(TfLiteContext* context, TfLiteNode* node,
|
||||||
|
@ -13,6 +13,8 @@ See the License for the specific language governing permissions and
|
|||||||
limitations under the License.
|
limitations under the License.
|
||||||
==============================================================================*/
|
==============================================================================*/
|
||||||
|
|
||||||
|
#include "tensorflow/lite/micro/kernels/svdf.h"
|
||||||
|
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <xtensa/tie/xt_hifi2.h>
|
#include <xtensa/tie/xt_hifi2.h>
|
||||||
|
|
||||||
@ -25,7 +27,6 @@ limitations under the License.
|
|||||||
#include "tensorflow/lite/kernels/op_macros.h"
|
#include "tensorflow/lite/kernels/op_macros.h"
|
||||||
#include "tensorflow/lite/micro/kernels/activation_utils.h"
|
#include "tensorflow/lite/micro/kernels/activation_utils.h"
|
||||||
#include "tensorflow/lite/micro/kernels/kernel_util.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"
|
#include "tensorflow/lite/micro/kernels/xtensa/fixedpoint_utils.h"
|
||||||
|
|
||||||
namespace tflite {
|
namespace tflite {
|
||||||
@ -398,8 +399,8 @@ TfLiteStatus Eval(TfLiteContext* context, TfLiteNode* node) {
|
|||||||
EvalIntegerSVDF(context, node, input, weights_feature, weights_time, bias,
|
EvalIntegerSVDF(context, node, input, weights_feature, weights_time, bias,
|
||||||
params, activation_state, output, data);
|
params, activation_state, output, data);
|
||||||
#else
|
#else
|
||||||
EvalIntegerSvdfReference(context, node, input, weights_feature, weights_time, bias,
|
EvalIntegerSvdfReference(context, node, input, weights_feature, weights_time,
|
||||||
params, activation_state, output, data);
|
bias, params, activation_state, output, data);
|
||||||
#endif
|
#endif
|
||||||
return kTfLiteOk;
|
return kTfLiteOk;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user