17#ifndef LUCI_INTERPRETER_PAL_FULLYCONNECTED_H
18#define LUCI_INTERPRETER_PAL_FULLYCONNECTED_H
20#include <tensorflow/lite/kernels/internal/reference/fully_connected.h>
21#include <tensorflow/lite/kernels/internal/reference/integer_ops/fully_connected.h>
26static inline void FullyConnected(
const tflite::FullyConnectedParams ¶ms,
27 const tflite::RuntimeShape &input_shape,
const T *input_data,
28 const tflite::RuntimeShape &filter_shape,
const T *filter_data,
29 const tflite::RuntimeShape &bias_shape,
const int32_t *bias_data,
30 const tflite::RuntimeShape &
output_shape, T *output_data)
34 assert(
false &&
"FullyConnected NYI");
50 const tflite::RuntimeShape &input_shape,
const int8_t *input_data,
51 const tflite::RuntimeShape &filter_shape,
const int8_t *filter_data,
52 const tflite::RuntimeShape &bias_shape,
const int32_t *bias_data,
53 const tflite::RuntimeShape &
output_shape, int8_t *output_data)
55 tflite::reference_integer_ops::FullyConnected(params, input_shape, input_data, filter_shape,
const luci_interpreter::RuntimeShape output_shape
void FullyConnected< int8_t >(const tflite::FullyConnectedParams ¶ms, 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)
void FullyConnected(const FullyConnectedParams ¶ms, const Shape &input_shape, const float *input_data, const Shape &weights_shape, const float *weights_data, const Shape &, const float *bias_data, const Shape &, float *output_data)