mx_deinit
Function Usage
Performs global deinitialization such as releasing log and device resources. This API works with the global initialization API (mx_init()).
- Allocating device resources involve the classes of Tensor, Model, Image, ImageProcessor, VideoEncoder, and VideoDecoder, whose scope conflicts with that of mx_deinit(). The scope of these classes must be smaller than that of mx_deinit().
- After mx_deinit() is executed, the log level becomes invalid and logs cannot be flushed to drives.
Prototype
1 | mx_deinit() |
Response Parameters
Data Structure |
Description |
|---|---|
int |
Error code returned during program execution. |
Parent topic: Initialization and Deinitialization