aclmdlInitDump

Description

Initializes the dump.

This API needs to be used with other APIs to implement the following functions:

Restrictions

  • If information about the model, single-operator, and overflow/underflow operator dump configurations has been configured by the aclInit call, a failure message is returned when aclmdlInitDump is called.
  • aclmdlInitDump must be called after the aclInit call and before the model loading API call.

Prototype

aclError aclmdlInitDump()

Parameters

None

Returns

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

Related APIs

AscendCL also provides the aclInit API. During AscendCL initialization, the dump configuration is passed as a JSON configuration file to dump the app data at run time. In this mode, aclInit can be called only once in a process. To change the dump configuration, modify the JSON configuration file.