Hiva::DestroyNnEngine
Description
Destroys an NN engine.
Prototype
uint32_t Hiva::DestroyNnEngine(const std::string& engineName)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
engineName |
Input |
Name of the inference engine to be destroyed, which must be the same as the name in CreateNnEngine. |
Returns
The return value is of the uint32_t type. If the operation is successful, HIVA_SUCCESS (value being 0) is returned. If other values are returned, the operation fails.
Usage
- When the NN engine is no longer required, you can invoke this interface to release it.
- After Hiva::CreateNnEngine is invoked, the DestroyNnEngine interface must be invoked to release resources when the process exits. Otherwise, a core dump may occur.
Precautions
- Non-reentrant, synchronous interface.
- This interface is not a member function of NodeHandle.
Parent topic: NnEngine