aclmdlRIDebugJsonPrint

Applicability

Product

Supported

Atlas A3 training products/Atlas A3 inference products

Atlas A2 training products/Atlas A2 inference products

Atlas 200I/500 A2 inference products

Atlas inference products

Atlas training products

Description

Exports the model running instance information to a file in JSON format in maintenance and test scenarios. The instance information includes the model ID, stream ID, task ID, and task type. Then, you can view the visualized model information in tracing mode (for example, chrome://tracing/).

Prototype

aclError aclmdlRIDebugJsonPrint(aclmdlRI modelRI, const char *path, uint32_t flags)

Parameters

Parameter

Input/Output

Description

modelRI

Input

Running instance of the model that is used to temporarily store the captured tasks.

Ensure that the value of modelRI is valid.

path

Input

Path of the file to export to. The path includes the file name.

Ensure that the file path exists and you have read and write permissions on it. Otherwise, this API returns a failure message.

flags

Input

Reserved. The value is fixed at 0.

Returns

0 on success; else, failure. For details, see aclError.