ONE - On-device Neural Engine
Loading...
Searching...
No Matches
nnfw::cker::optimized::GemmlowpOutputPipeline Struct Reference

#include <Conv.h>

Public Types

typedef gemmlowp::VectorMap< const int32_t, gemmlowp::VectorShape::Col > ColVectorMap
 
typedef std::tuple< gemmlowp::OutputStageBiasAddition< ColVectorMap >, gemmlowp::OutputStageScaleInt32ByFixedPointAndExponent, gemmlowp::OutputStageClamp, gemmlowp::OutputStageSaturatingCastToUint8 > Pipeline
 

Static Public Member Functions

static Pipeline MakeExp (const int32_t *bias_data, int output_rows, int32_t output_offset, int32_t output_multiplier, int output_left_shift, int32_t output_activation_min, int32_t output_activation_max)
 

Detailed Description

Definition at line 47 of file Conv.h.

Member Typedef Documentation

◆ ColVectorMap

typedef gemmlowp::VectorMap<const int32_t, gemmlowp::VectorShape::Col> nnfw::cker::optimized::GemmlowpOutputPipeline::ColVectorMap

Definition at line 49 of file Conv.h.

◆ Pipeline

typedef std::tuple<gemmlowp::OutputStageBiasAddition<ColVectorMap>, gemmlowp::OutputStageScaleInt32ByFixedPointAndExponent, gemmlowp::OutputStageClamp, gemmlowp::OutputStageSaturatingCastToUint8> nnfw::cker::optimized::GemmlowpOutputPipeline::Pipeline

Definition at line 53 of file Conv.h.

Member Function Documentation

◆ MakeExp()

static Pipeline nnfw::cker::optimized::GemmlowpOutputPipeline::MakeExp ( const int32_t *  bias_data,
int  output_rows,
int32_t  output_offset,
int32_t  output_multiplier,
int  output_left_shift,
int32_t  output_activation_min,
int32_t  output_activation_max 
)
inlinestatic

Definition at line 54 of file Conv.h.

57 {
58 ColVectorMap bias_vector(bias_data, output_rows);
59 gemmlowp::OutputStageBiasAddition<ColVectorMap> bias_addition_stage;
60 bias_addition_stage.bias_vector = bias_vector;
61 gemmlowp::OutputStageScaleInt32ByFixedPointAndExponent quantize_down_stage;
62 quantize_down_stage.result_offset_after_shift = output_offset;
63 quantize_down_stage.result_fixedpoint_multiplier = output_multiplier;
64 quantize_down_stage.result_exponent = output_left_shift;
65 gemmlowp::OutputStageClamp clamp_stage;
66 clamp_stage.min = output_activation_min;
67 clamp_stage.max = output_activation_max;
68 gemmlowp::OutputStageSaturatingCastToUint8 saturating_cast_stage;
69 return std::make_tuple(bias_addition_stage, quantize_down_stage, clamp_stage,
70 saturating_cast_stage);
71 }
gemmlowp::VectorMap< const int32_t, gemmlowp::VectorShape::Col > ColVectorMap
Definition Conv.h:49

Referenced by nnfw::cker::optimized::Conv().


The documentation for this struct was generated from the following file: