17#ifndef LUCI_INTERPRETER_PAL_DEPTHWISECONV2D_H
18#define LUCI_INTERPRETER_PAL_DEPTHWISECONV2D_H
20#include <tensorflow/lite/kernels/internal/reference/depthwiseconv_float.h>
21#include <tensorflow/lite/kernels/internal/reference/depthwiseconv_uint8.h>
22#include <tensorflow/lite/kernels/internal/reference/integer_ops/depthwise_conv.h>
29 const int32_t *output_shift,
const tflite::RuntimeShape &input_shape,
30 const T *input_data,
const tflite::RuntimeShape &filter_shape,
31 const T *filter_data,
const tflite::RuntimeShape &bias_shape,
32 const int32_t *bias_data,
const tflite::RuntimeShape &
output_shape,
33 T *output_data,
const tflite::RuntimeShape &scratchpad_shape,
38 assert(
false &&
"DepthwiseConvPerChannel NYI");
40 (void)output_multiplier;
51 (void)scratchpad_shape;
52 (void)scratchpad_data;
58 const tflite::DepthwiseParams ¶ms,
const int32_t *output_multiplier,
59 const int32_t *output_shift,
const tflite::RuntimeShape &input_shape,
const int8_t *input_data,
60 const tflite::RuntimeShape &filter_shape,
const int8_t *filter_data,
61 const tflite::RuntimeShape &bias_shape,
const int32_t *bias_data,
62 const tflite::RuntimeShape &
output_shape, int8_t *output_data,
63 const tflite::RuntimeShape &scratchpad_shape, int8_t *scratchpad_data)
65 (void)scratchpad_shape;
66 (void)scratchpad_data;
67 tflite::reference_integer_ops::DepthwiseConvPerChannel(
68 params, output_multiplier, output_shift, input_shape, input_data, filter_shape, filter_data,
73 const tflite::DepthwiseParams ¶ms,
75 const tflite::RuntimeShape &input_shape,
76 const tflite::RuntimeShape &filter_shape,
81 (void)input_data_type;
void set_allocatable(bool value)
const luci_interpreter::RuntimeShape output_shape
void DepthwiseConvPerChannel< int8_t >(const tflite::DepthwiseParams ¶ms, const int32_t *output_multiplier, const int32_t *output_shift, const tflite::RuntimeShape &input_shape, const int8_t *input_data, const tflite::RuntimeShape &filter_shape, const int8_t *filter_data, const tflite::RuntimeShape &bias_shape, const int32_t *bias_data, const tflite::RuntimeShape &output_shape, int8_t *output_data, const tflite::RuntimeShape &scratchpad_shape, int8_t *scratchpad_data)
DataType
"scalar" value type
void DepthwiseConvPerChannel(const DepthwiseConvParams ¶ms, const int32_t *output_multiplier, const int32_t *output_shift, const Shape &input_shape, const int8_t *input_data, const Shape &filter_shape, const int8_t *filter_data, const Shape &bias_shape, const int32_t *bias_data, const Shape &output_shape, int8_t *output_data, ruy::Context *ruy_context)