18#ifndef ONERT_MICRO_EXECUTE_PAL_ADD_COMMON_H
19#define ONERT_MICRO_EXECUTE_PAL_ADD_COMMON_H
34 const int32_t shifted_input1_val = input1_val * (1 << params.
left_shift);
35 const int32_t shifted_input2_val = input2_val * (1 << params.
left_shift);
40 const int32_t raw_sum = scaled_input1_val + scaled_input2_val;
46 return static_cast<int8_t
>(clamped_output);
51 const T *input1_data,
const T *input2_data, T *output_data)
53 ArithmeticOp<T, AddFn<T>>(params, flat_size, input1_data, input2_data, output_data);
63 BroadcastArithmeticOp4DSlow<T, AddFn<T>>(params, input1_shape, input1_data, input2_shape,
const luci_interpreter::RuntimeShape output_shape
OMStatus BroadcastAdd4DSlow(const core::BinaryArithmeticBroadcastParams ¶ms, const core::OMRuntimeShape &input1_shape, const T *input1_data, const core::OMRuntimeShape &input2_shape, const T *input2_data, const core::OMRuntimeShape &output_shape, T *output_data)
int32_t multiplyByQuantizedMultiplierSmallerThanOneExp(int32_t x, int32_t quantized_multiplier, int left_shift)
OMStatus Add(const core::ArithmeticQuantParams ¶ms, const uint32_t flat_size, const int8_t *input1_data, const int8_t *input2_data, int8_t *output_data)
int8_t AddFunc(int8_t x, int8_t y, const core::ArithmeticQuantParams ¶ms)
void BroadcastBinaryFunction6DSlow(const core::ArithmeticQuantParams ¶ms, const core::OMRuntimeShape &input1_shape, const T *input1_data, const core::OMRuntimeShape &input2_shape, const T *input2_data, const core::OMRuntimeShape &output_shape, T *output_data, T(*binary_func)(T, T, const core::ArithmeticQuantParams &))
int32_t quantized_activation_min
int32_t quantized_activation_max
int32_t input1_multiplier
int32_t input2_multiplier
int32_t output_multiplier