25#include "PALL2Normalize.h"
33constexpr uint32_t inputTensorIdx = 0;
41 const circle::Tensor *
input =
nullptr;
42 const circle::Tensor *
output =
nullptr;
47 SISOHeader(execute_args, &input, &output, &input_data, &output_data);
51 switch (
input->type())
54 case circle::TensorType_FLOAT32:
60 const auto trailing_dim = inputs_shape.dimensionsCount() - 1;
66 assert(inputs_shape.dims(trailing_dim) == outputs_shape.dims(trailing_dim));
67 params.
row_size = inputs_shape.dims(trailing_dim);
70 core::utils::castOutputData<float>(output_data));
77 assert(
false &&
"Unsupported type.");
constexpr uint32_t outputTensorIdx
int flatSizeSkipDim(const int32_t *dims_data, int skip_dim, int num_dims)
OMStatus L2Normalization(const core::L2NormalizationParams ¶ms, const float *input_data, float *output_data)
OMStatus SISOHeader(const OMExecuteArgs &execute_args, const circle::Tensor **input, const circle::Tensor **output, uint8_t **input_data, uint8_t **output_data)