aclgrphCalibration
Applicability
|
Product |
Supported |
|---|---|
|
Atlas 350 Accelerator Card |
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
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 Quantifiable Layers 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.