# Scale

```cpp
#include <qbruntime/type.h>

struct mobilint::Scale
```

Struct for scale values.

## Attributes

| Member | Description |
| --- | --- |
| [`scale_list`](<#scale-list>) |  |
| [`scale`](<#scale>) |  |
| [`is_uniform`](<#is-uniform>) |  |
| [`zero_points`](<#zero-points>) |  |
| [`zero_point`](<#zero-point>) |  |
| [`is_asymmetric`](<#is-asymmetric>) |  |

### scale\_list

```cpp
std::vector<float> scale_list
```

List of scale values for non-uniform scaling.

### scale

```cpp
float scale
```

Uniform scale value

### is\_uniform

```cpp
bool is_uniform
```

Indicates whether uniform scaling is used.

### zero\_points

```cpp
std::vector<int8_t> zero_points
```

Per-channel zero points for asymmetric quantization.

### zero\_point

```cpp
int8_t zero_point
```

Uniform zero point for asymmetric quantization.

### is\_asymmetric

```cpp
bool is_asymmetric
```

Indicates whether asymmetric quantization is used.

## Member functions

| Member | Description |
| --- | --- |
| [`operator[]`](<#operator-subscript>) | Returns the scale value at the specified index. |

### operator\[\]

```cpp
float operator[](int i) const
```

Returns the scale value at the specified index.

**Parameters**

- `i` *\[in\]* — Index.

**Returns**

[Scale](<https://docs.mobilint.com/runtime/en/v1.4/api/cpp/scale/index.md>) value.
