17#ifndef LUCI_INTERPRETER_PAL_SOFTMAX_H
18#define LUCI_INTERPRETER_PAL_SOFTMAX_H
20#include <tensorflow/lite/kernels/internal/optimized/optimized_ops.h>
27 tflite::optimized_ops::PopulateSoftmaxLookupTable(data, input_scale, beta);
30static inline void InitializeParams(tflite::SoftmaxParams *params,
float input_scale,
float beta)
38template <
typename In,
typename Out>
39static inline void Softmax(
const tflite::SoftmaxParams ¶ms,
40 const tflite::RuntimeShape &input_shape,
const In *input_data,
41 const tflite::RuntimeShape &
output_shape, Out *output_data)
43 tflite::optimized_ops::Softmax(params, input_shape, input_data,
output_shape, output_data);
const luci_interpreter::RuntimeShape output_shape
void Softmax(const SoftmaxParams ¶ms, const Shape &input_shape, const float *input_data, const Shape &output_shape, float *output_data)
void PopulateSoftmaxLookupTable(float *table, float input_scale, float beta)