ONE - On-device Neural Engine
Loading...
Searching...
No Matches
Utils.cpp File Reference
#include "kernels/Utils.h"
#include <cassert>
#include <cmath>
#include <limits>

Go to the source code of this file.

Namespaces

namespace  luci_interpreter
 
namespace  luci_interpreter::kernels
 

Functions

luci_interpreter::RuntimeShape luci_interpreter::kernels::getTensorRuntimeShape (const circle::Tensor *circle_tensor, BaseRuntimeGraph *runtime_graph)
 
template<typename T >
void luci_interpreter::kernels::calculateActivationRange (Activation activation, T *activation_min, T *activation_max)
 
void luci_interpreter::kernels::matrixScalarMultiplyAccumulate (const int8_t *matrix, int32_t scalar, int32_t n_row, int32_t n_col, int32_t *output)
 
bool luci_interpreter::kernels::areShapesEqual (const luci_interpreter::RuntimeShape &input_shape1, const luci_interpreter::RuntimeShape &input_shape2)
 
template void luci_interpreter::kernels::calculateActivationRange (Activation activation, float *activation_min, float *activation_max)
 
template void luci_interpreter::kernels::calculateActivationRange (Activation activation, int32_t *activation_min, int32_t *activation_max)
 
template void luci_interpreter::kernels::calculateActivationRange (Activation activation, int64_t *activation_min, int64_t *activation_max)
 
bool luci_interpreter::kernels::checkedLog2 (const float x, int *log2_result)
 
int luci_interpreter::kernels::calculateInputRadius (int input_integer_bits, int input_left_shift, int total_signed_bits)
 
void luci_interpreter::kernels::calculateActivationRangeQuantized (Activation activation, int32_t output_zero_point, float output_scale, DataType data_type, int32_t *activation_min, int32_t *activation_max)
 
void luci_interpreter::kernels::calculateActivationRangeQuantized (Activation activation, const circle::Tensor *output, int32_t *activation_min, int32_t *activation_max)
 
void luci_interpreter::kernels::quantizeMultiplier (double double_multiplier, int32_t *quantized_multiplier, int *shift)
 
void luci_interpreter::kernels::quantizeMultiplierSmallerThanOneExp (double double_multiplier, int32_t *quantized_multiplier, int *left_shift)
 
luci_interpreter::RuntimeShape luci_interpreter::kernels::calculateShapeForBroadcast (const circle::Tensor *input1, const circle::Tensor *input2)