aclgrphCalibration
Applicable Products
Ascend 950PR /Ascend 950DT : supportedAtlas A3 training products /Atlas A3 inference products : supportedAtlas A2 training products /Atlas A2 inference products : supportedAtlas 200I/500 A2 inference products : supportedAtlas inference products : supportedAtlas training products : supported
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.
- For details about the layers that support quantization and the restrictions, see Layers That Support Quantization and Restrictions.
- When the calibration feature in the configuration file is used, only installation scenarios with NPU-equipped devices are supported. For details, set up the product environment by referring to CANN Software Installation.
- In the
Atlas 200I/500 A2 inference product 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 Tuning Tool.