aclmdlRIDebugJsonPrint

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product / Atlas A3 inference product

Atlas A2 training product / Atlas A2 inference product

Atlas 200I/500 A2 inference product

Atlas inference product

Atlas training product

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

1
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. For details about the type definition, see aclmdlRI.

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; otherwise, failure. For details, see aclError.

API Call Example

For the API call example, see Single-Stream Capture.