aclopStopDumpArgs

The Atlas 200/300/500 Inference Product does not support this API.

Description

Disables the operator statistics function. This API must be used in pair with aclopStartDumpArgs to export the operator information files to the directory specified by path. One shape corresponds to one operator information file, which contains the operator type, operator attributes, and operator input and output information such as format, data type, and shape.

Application scenario: For example, if you want to collect statistics on the operators involved in the execution of a model, you can call the aclopStartDumpArgs API before the model execution and call the aclopStopDumpArgs API after the model execution. After the successful aclopStartDumpArgs call, an operator information file for each operator shape is generated in the directory specified by path.

Restrictions

This API can be used only in the single-operator API execution scenario. Otherwise, dump files cannot be generated.

Prototype

aclError aclopStopDumpArgs(uint32_t dumpType)

Parameters

Parameter

Input/Output

Description

dumpType

Input

Type of dump information.

Currently, only ACL_OP_DUMP_OP_AICORE_ARGS is supported, indicating that information about all operators is collected.

#define ACL_OP_DUMP_OP_AICORE_ARGS 0x00000001U

Returns

The value 0 indicates success, and other values indicate failure. For details, see aclError.