Skip to content

Scale

#include <qbruntime/type.h>

struct mobilint::Scale

Struct for scale values.

Attributes

Member Description
scale_list
scale
is_uniform
zero_points
zero_point
is_asymmetric

scale_list

std::vector<float> scale_list

List of scale values for non-uniform scaling.

scale

float scale

Uniform scale value

is_uniform

bool is_uniform

Indicates whether uniform scaling is used.

zero_points

std::vector<int8_t> zero_points

Per-channel zero points for asymmetric quantization.

zero_point

int8_t zero_point

Uniform zero point for asymmetric quantization.

is_asymmetric

bool is_asymmetric

Indicates whether asymmetric quantization is used.

Member functions

Member Description
operator[] Returns the scale value at the specified index.

operator[]

float operator[](int i) const

Returns the scale value at the specified index.

Parameters

  • i [in] — Index.

Returns

Scale value.