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  onert_micro
 
namespace  onert_micro::execute
 
namespace  onert_micro::execute::pal
 

Functions

std::pair< uint32_t, uint32_t > onert_micro::execute::pal::getUpLowerWeightTensorDepth (core::OpTrainableRankType rank, const uint32_t output_depth)
 
std::int32_t onert_micro::execute::pal::saturatingRoundingDoublingHighMul (std::int32_t a, std::int32_t b)
 
int32_t onert_micro::execute::pal::roundingDivideByPOT (int32_t x, int32_t exponent)
 
int32_t onert_micro::execute::pal::multiplyByQuantizedMultiplier (int32_t x, int32_t quantized_multiplier, int shift)
 
int32_t onert_micro::execute::pal::multiplyByQuantizedMultiplierSmallerThanOneExp (int32_t x, int32_t quantized_multiplier, int left_shift)
 
template<typename P >
void onert_micro::execute::pal::getActivationParams (const P &params, int32_t *min, int32_t *max)
 
template<typename P >
void onert_micro::execute::pal::getActivationParams (const P &params, float *min, float *max)
 
template<typename P >
void onert_micro::execute::pal::getActivationParams (const P &params, int64_t *min, int64_t *max)
 
size_t onert_micro::execute::pal::reducedOutputOffset (const int32_t num_dims, const int32_t *dims, const int32_t *index, const int32_t num_axis, const int32_t *axis)
 
bool onert_micro::execute::pal::nextIndex (const int32_t num_dims, const int32_t *dims, int32_t *current)
 
int onert_micro::execute::pal::MatchingDim (const core::OMRuntimeShape &shape1, int index1, const core::OMRuntimeShape &shape2, int index2)
 
int onert_micro::execute::pal::flatSizeSkipDim (const int32_t *dims_data, int skip_dim, int num_dims)
 
int onert_micro::execute::pal::offset (const int32_t *dims_data, int i0, int i1, int i2, int i3)
 
int onert_micro::execute::pal::offset (const int32_t *dims_data, int i0, int i1, int i2, int i3, int i4)
 
template<typename T >
onert_micro::execute::pal::activationFunctionWithMinMax (T x, T output_activation_min, T output_activation_max)
 
template<int MAX_DIM = 6>
bool onert_micro::execute::pal::ReduceDimensionsForBroadcast (const core::OMRuntimeShape &input1_shape, const core::OMRuntimeShape &input2_shape, size_t *compressed_input1_stride, size_t *compressed_input2_stride, size_t *compressed_output_shape)