Scale Struct Reference

Scale Struct Reference#

SDK qb Runtime Library: mobilint::Scale Struct Reference
SDK qb Runtime Library v1.3
MCS001-EN

Struct for scale values. More...

#include <type.h>

Public Member Functions

float operator[] (int i) const
 Returns the scale value at the specified index.

Public Attributes

std::vector< float > scale_list
float scale = 0.0F
bool is_uniform = false
std::vector< int8_t > zero_points
int8_t zero_point = 0
bool is_asymmetric = false

Detailed Description

Struct for scale values.

Definition at line 98 of file type.h.

Member Function Documentation

◆ operator[]()

float mobilint::Scale::operator[] ( int i) const
inline

Returns the scale value at the specified index.

Parameters
[in]iIndex.
Returns
Scale value.

Definition at line 113 of file type.h.

Member Data Documentation

◆ scale_list

std::vector<float> mobilint::Scale::scale_list

List of scale values for non-uniform scaling.

Definition at line 99 of file type.h.

◆ scale

float mobilint::Scale::scale = 0.0F

Uniform scale value

Definition at line 100 of file type.h.

◆ is_uniform

bool mobilint::Scale::is_uniform = false

Indicates whether uniform scaling is used.

Definition at line 101 of file type.h.

◆ zero_points

std::vector<int8_t> mobilint::Scale::zero_points

Per-channel zero points for asymmetric quantization.

Definition at line 103 of file type.h.

◆ zero_point

int8_t mobilint::Scale::zero_point = 0

Uniform zero point for asymmetric quantization.

Definition at line 104 of file type.h.

◆ is_asymmetric

bool mobilint::Scale::is_asymmetric = false

Indicates whether asymmetric quantization is used.

Definition at line 105 of file type.h.


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