ONE - On-device Neural Engine
Loading...
Searching...
No Matches
Utils.h File Reference
#include "Shape.h"
#include "ShapeIterator.h"
#include "neon/neon_check.h"
#include <algorithm>
#include <cstdint>
#include <numeric>
#include <string>
#include <fixedpoint/fixedpoint.h>

Go to the source code of this file.

Data Structures

struct  nnfw::cker::is_quant8< T >
 
struct  nnfw::cker::NdArrayDesc< N >
 
class  nnfw::cker::SequentialTensorWriter< T >
 

Namespaces

namespace  nnfw
 
namespace  nnfw::cker
 

Functions

template<typename T >
nnfw::cker::ActivationFunctionWithMinMax (T x, T output_activation_min, T output_activation_max)
 
void nnfw::cker::QuantizeMultiplier (double double_multiplier, int32_t *quantized_multiplier, int *shift)
 
void nnfw::cker::QuantizeMultiplierSmallerThanOneExp (double double_multiplier, int32_t *quantized_multiplier, int *left_shift)
 
int32_t nnfw::cker::MultiplyByQuantizedMultiplier (int32_t x, int32_t quantized_multiplier, int shift)
 
int32_t nnfw::cker::MultiplyByQuantizedMultiplierGreaterThanOne (int32_t x, int32_t quantized_multiplier, int left_shift)
 
int32_t nnfw::cker::MultiplyByQuantizedMultiplierSmallerThanOneExp (int32_t x, int32_t quantized_multiplier, int left_shift)
 
int nnfw::cker::NodeOffset (int b, int h, int w, int height, int width)
 
int nnfw::cker::CountLeadingZeros (uint32_t integer_input)
 
void nnfw::cker::GetInvSqrtQuantizedMultiplierExp (int32_t input, int reverse_shift, int32_t *output_inv_sqrt, int *output_shift)
 
int nnfw::cker::SubscriptToIndex (const NdArrayDesc< 4 > &desc, int i0, int i1, int i2, int i3)
 
template<int N>
int nnfw::cker::SubscriptToIndexGeneric (const NdArrayDesc< N > *desc, int *iter)
 
template<int N>
void nnfw::cker::CopyDimsToDesc (const Shape &input_shape, NdArrayDesc< N > *desc_out)
 
template<int N>
void nnfw::cker::NdArrayDescsForElementwiseBroadcast (const Shape &input0_shape, const Shape &input1_shape, NdArrayDesc< N > *desc0_out, NdArrayDesc< N > *desc1_out)
 
template<int N>
void nnfw::cker::NdArrayDescsForElementwiseBroadcast (const Shape &input0_shape, const Shape &input1_shape, const Shape &input2_shape, NdArrayDesc< N > *desc0_out, NdArrayDesc< N > *desc1_out, NdArrayDesc< N > *desc2_out)
 
bool nnfw::cker::NextIndex (const int num_dims, const int *dims, int *current)
 
size_t nnfw::cker::ReducedOutputOffset (const int num_dims, const int *dims, const int *index, const int num_axis, const int *axis)
 
template<typename T >
void nnfw::cker::optimized_ops_preload_l1_keep (const T *ptr)
 
std::ostream & nnfw::cker::operator<< (std::ostream &os, const Shape &shape)