aclgrphCalibration
Applicability
|
Product |
Supported or Not |
|---|---|
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
Header File/Library File
- Header file: #include <amct/acl_graph_calibration.h>
- Library file: libamctacl.so
Prototype
1
|
graphStatus aclgrphCalibration(ge::Graph &graph, const std::map<ge::AscendString, ge::AscendString> &quantizeConfigs) |
Parameters
|
Parameter |
Input/Output |
Description |
|---|---|---|
|
graph |
Input |
Original graph to be modified. |
|
quantizeConfigs |
Input |
A key-value mapping table, for the configuration options required for API execution, key indicates the parameter type, and value indicates the parameter value, both of type string. Set them as follows:
|
Returns
Restrictions
- Graphs that have been inserted with quantization operators cannot be quantized.
- Refer to Layers That Support Quantization and Their Restrictions.
- When the calibration feature in the configuration file is used, only installation scenarios with NPU-equipped devices are supported. For details, refer to CANN Software Installation Guide to set up the product environment.
- In the
Atlas 200I/500 A2 inference products Ascend RC scenario, you also need to install the NCS software in the operating environment and configure the key certificate. For details, see "AOE Tool (Ascend RC) >Environment Setup" in AOE Instructions.