Function deepviewrt_sys::nn_init

source ·
pub unsafe extern "C" fn nn_init(options: *const NNOptions) -> NNError
Expand description

Initializes the library with optional parameters. This function MUST be called before any others (though nn_version and nn_strerror are safe) and MUST not be called again unless care is taken to protect this call.

@note As of DeepViewRT 2.4.32 this function does not do anything except on RaspberryPi platforms. This could change in the future so it is safer to call the function for future compatibility.

@return NN_SUCCESS after successfully initializing the library. @return NN_ERROR_INTERNAL if the library fails to initialize.

@since 2.4