17#ifndef LUCI_INTERPRETER_PAL_AVERAGEPOOL2D_H
18#define LUCI_INTERPRETER_PAL_AVERAGEPOOL2D_H
20#include <tensorflow/lite/kernels/internal/reference/integer_ops/pooling.h>
21#include <tensorflow/lite/kernels/internal/reference/pooling.h>
26static inline void AveragePool(
const tflite::PoolParams ¶ms,
27 const tflite::RuntimeShape &input_shape,
const T *input_data,
28 const tflite::RuntimeShape &
output_shape, T *output_data,
29 const tflite::RuntimeShape &scratchpad_shape, T *scratchpad_data)
33 assert(
false &&
"AveragePool NYI");
39 (void)scratchpad_shape;
40 (void)scratchpad_data;
46 const tflite::RuntimeShape &input_shape,
const int8_t *input_data,
47 const tflite::RuntimeShape &
output_shape, int8_t *output_data,
48 const tflite::RuntimeShape &scratchpad_shape,
49 int8_t *scratchpad_data)
51 (void)scratchpad_shape;
52 (void)scratchpad_data;
54 tflite::reference_integer_ops::AveragePool(params, input_shape, input_data,
output_shape,
60 const tflite::RuntimeShape &input_shape,
64 (void)input_data_type;
void set_allocatable(bool value)
const luci_interpreter::RuntimeShape output_shape
void AveragePool< int8_t >(const tflite::PoolParams ¶ms, const tflite::RuntimeShape &input_shape, const int8_t *input_data, const tflite::RuntimeShape &output_shape, int8_t *output_data, const tflite::RuntimeShape &scratchpad_shape, int8_t *scratchpad_data)
DataType
"scalar" value type
void AveragePool(const PoolParams &, const Shape &, const T *, const Shape &, T *)