---
title: QuantType
description: "量化支持的类型。"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/API/ascendtb/ascendtb_01_0048.html
sourcePath: /source/zh/canncommercial/900/API/ascendtb/ascendtb_01_0048.html
indexId: 1109ed89979ad7337bd51dab886ce5097f553c56aab7355c224e5240913ecbf864
---
# QuantType

#### 功能说明

量化支持的类型。


#### 定义

```
enum QuantType: int {
    QUANT_UNDEFINED = 0,
    QUANT_UNQUANT = 0,
    QUANT_INT4,
    QUANT_INT8,
    QUANT_INT16,
    QUANT_FLOAT8,
    QUANT_FLOAT16
};
```


#### 成员

| 成员名称 | 描述 |
| --- | --- |
| QUANT\_UNDEFINED | 不量化。 |
| QUANT\_UNQUANT | 不量化。 |
| QUANT\_INT4 | INT4量化，当前不支持。 |
| QUANT\_INT8 | INT8量化。 |
| QUANT\_INT16 | INT16量化，当前不支持。 |
| QUANT\_FLOAT8 | FLOAT8量化，当前不支持。 |
| QUANT\_FLOAT16 | FLOAT16量化，当前不支持。 |
