ONE - On-device Neural Engine
Loading...
Searching...
No Matches
PALUtils.h File Reference
#include <cassert>

Go to the source code of this file.

Namespaces

namespace  luci_interpreter_pal
 

Functions

std::int32_t luci_interpreter_pal::saturatingRoundingDoublingHighMul (std::int32_t a, std::int32_t b)
 
int32_t luci_interpreter_pal::roundingDivideByPOT (int32_t x, int32_t exponent)
 
int32_t luci_interpreter_pal::multiplyByQuantizedMultiplier (int32_t x, int32_t quantized_multiplier, int shift)
 
int32_t luci_interpreter_pal::multiplyByQuantizedMultiplierSmallerThanOneExp (int32_t x, int32_t quantized_multiplier, int left_shift)
 
template<typename P >
void luci_interpreter_pal::getActivationParams (const P &params, int32_t *min, int32_t *max)
 
template<typename P >
void luci_interpreter_pal::getActivationParams (const P &params, float *min, float *max)
 
template<typename P >
void luci_interpreter_pal::getActivationParams (const P &params, int64_t *min, int64_t *max)
 
size_t luci_interpreter_pal::reducedOutputOffset (const int num_dims, const int *dims, const int *index, const int num_axis, const int *axis)
 
bool luci_interpreter_pal::nextIndex (const int num_dims, const int *dims, int *current)
 
int luci_interpreter_pal::MatchingDim (const luci_interpreter::RuntimeShape &shape1, int index1, const luci_interpreter::RuntimeShape &shape2, int index2)
 
int luci_interpreter_pal::flatSizeSkipDim (const int32_t *dims_data, int skip_dim, int num_dims)
 
int luci_interpreter_pal::offset (const int32_t *dims_data, int i0, int i1, int i2, int i3)
 
int luci_interpreter_pal::offset (const int32_t *dims_data, int i0, int i1, int i2, int i3, int i4)
 
template<typename T >
luci_interpreter_pal::activationFunctionWithMinMax (T x, T output_activation_min, T output_activation_max)