Compute Library
 22.08
Requantize32 Struct Reference

#include <arm_gemm.hpp>

Public Member Functions

 Requantize32 ()=default
 
 Requantize32 (const int32_t *bias, size_t bias_multi_stride, int32_t a_offset, int32_t b_offset, int32_t c_offset, int32_t requant_shift, int32_t requant_mul, int32_t minv, int32_t maxv)
 
 Requantize32 (const int32_t *bias, size_t bias_multi_stride, int32_t a_offset, int32_t b_offset, int32_t c_offset, const int32_t *requant_left_shifts, const int32_t *requant_right_shifts, const int32_t *requant_muls, int32_t minv, int32_t maxv)
 

Data Fields

const int32_t * bias = nullptr
 
size_t bias_multi_stride = 0
 
int32_t a_offset = 0
 
int32_t b_offset = 0
 
int32_t c_offset = 0
 
bool per_channel_requant = false
 
int32_t per_layer_left_shift = 0
 
int32_t per_layer_right_shift = 0
 
int32_t per_layer_mul = 0
 
const int32_t * per_channel_left_shifts = nullptr
 
const int32_t * per_channel_right_shifts = nullptr
 
const int32_t * per_channel_muls = nullptr
 
int32_t minval = 0
 
int32_t maxval = 0
 

Detailed Description

Definition at line 169 of file arm_gemm.hpp.

Constructor & Destructor Documentation

◆ Requantize32() [1/3]

Requantize32 ( )
default

◆ Requantize32() [2/3]

Requantize32 ( const int32_t *  bias,
size_t  bias_multi_stride,
int32_t  a_offset,
int32_t  b_offset,
int32_t  c_offset,
int32_t  requant_shift,
int32_t  requant_mul,
int32_t  minv,
int32_t  maxv 
)
inline

Definition at line 190 of file arm_gemm.hpp.

194  per_layer_right_shift(std::min<int32_t>(requant_shift, 0)), per_layer_mul(requant_mul), minval(minv), maxval(maxv)
195  {
196  }
const int32_t * bias
Definition: arm_gemm.hpp:172
int32_t per_layer_left_shift
Definition: arm_gemm.hpp:178
int32_t per_layer_right_shift
Definition: arm_gemm.hpp:179

◆ Requantize32() [3/3]

Requantize32 ( const int32_t *  bias,
size_t  bias_multi_stride,
int32_t  a_offset,
int32_t  b_offset,
int32_t  c_offset,
const int32_t *  requant_left_shifts,
const int32_t *  requant_right_shifts,
const int32_t *  requant_muls,
int32_t  minv,
int32_t  maxv 
)
inline

Definition at line 199 of file arm_gemm.hpp.

206  per_channel_right_shifts(requant_right_shifts), per_channel_muls(requant_muls), minval(minv), maxval(maxv)
207  {
208  }
const int32_t * bias
Definition: arm_gemm.hpp:172
const int32_t * per_channel_left_shifts
Definition: arm_gemm.hpp:181
const int32_t * per_channel_right_shifts
Definition: arm_gemm.hpp:182
const int32_t * requant_muls
const int32_t * per_channel_muls
Definition: arm_gemm.hpp:183

Field Documentation

◆ a_offset

◆ b_offset

◆ bias

◆ bias_multi_stride

◆ c_offset

int32_t c_offset = 0

Definition at line 176 of file arm_gemm.hpp.

◆ maxval

int32_t maxval = 0

Definition at line 185 of file arm_gemm.hpp.

◆ minval

int32_t minval = 0

Definition at line 184 of file arm_gemm.hpp.

◆ per_channel_left_shifts

◆ per_channel_muls

◆ per_channel_requant

◆ per_channel_right_shifts

◆ per_layer_left_shift

int32_t per_layer_left_shift = 0

Definition at line 178 of file arm_gemm.hpp.

Referenced by arm_gemm::quant_no_left_shift().

◆ per_layer_mul

◆ per_layer_right_shift


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