ONE - On-device Neural Engine
Loading...
Searching...
No Matches
PortableTensorUtils.h File Reference
#include "cker/Types.h"
#include "cker/neon/neon_check.h"
#include <ruy/context.h>
#include <cstring>
#include <cmath>

Go to the source code of this file.

Data Structures

class  nnfw::cker::ActivationFunctor
 

Namespaces

namespace  nnfw
 
namespace  nnfw::cker
 

Functions

template<typename T >
void nnfw::cker::PortableCwiseClipping (T *vector, const int v_size, const T clipping_value)
 
void nnfw::cker::PortableVectorBatchVectorAssign (const float *vector, int v_size, int n_batch, float *batch_vector)
 
void nnfw::cker::PortableVectorBatchVectorAdd (const float *vector, int v_size, int n_batch, float *batch_vector)
 
bool nnfw::cker::PortableIsZeroVector (const float *vector, int v_size)
 
void nnfw::cker::PortableApplyActivationToVector (const float *vector, int v_size, FusedActivationFunctionType activation, float *result)
 
void nnfw::cker::PortableSub1Vector (const float *vector, int v_size, float *result)
 
void nnfw::cker::PortableSymmetricQuantizeFloats (const float *values, const int size, int8_t *quantized_values, float *min_value, float *max_value, float *scaling_factor)
 
void nnfw::cker::PortableAsymmetricQuantizeFloats (const float *values, const int size, int8_t *quantized_values, float *scaling_factor, int32_t *offset)
 
void nnfw::cker::PortableMatrixBatchVectorMultiplyAccumulate (const int8_t *__restrict__ matrix, const int m_rows, const int m_cols, const int8_t *__restrict__ vectors, const float *scaling_factors, int n_batch, float *__restrict__ result, int result_stride)
 
void nnfw::cker::PortableMatrixBatchVectorMultiplyAccumulate (const int8_t *__restrict__ matrix, const int m_rows, const int m_cols, const int8_t *__restrict__ vector, const float *scaling_factors, int n_batch, int32_t *, float *__restrict__ result, int result_stride, ruy::Context *)
 
void nnfw::cker::PortableMatrixBatchVectorMultiplyAccumulate (const float *matrix, int m_rows, int m_cols, const float *vector, int n_batch, float *result, int result_stride)
 
void nnfw::cker::PortableMeanStddevNormalization (const float *input_vector, float *output_vector, int v_size, int n_batch)
 
void nnfw::cker::PortableZeroVector (float *vector, int v_size)