Model Loading & Releasing
hbDNNInitializeFromFiles
Complete the creation and initialization of dnnPackedHandle from the file. The caller can use the returned dnnPackedHandle across functions and threads.
- Parameter
- [out]
dnnPackedHandleHorizon DNN handle, pointing to multiple models. - [in]
modelFileNamesPath of the model files. - [in]
modelFileCountNumber of the model files.
- [out]
- Return Value
- Return
0means the API was successfully executed, otherwise the execution failed.
- Return
hbDNNInitializeFromDDR
Complete the creation and initialization of dnnPackedHandle from the memory. The caller can use the returned dnnPackedHandle across functions and threads.
- Parameter
- [out]
dnnPackedHandleHorizon DNN handle, pointing to multiple models. - [in]
modelDataPointer to the model file. - [in]
modelDataLengthsLength of the model data. - [in]
modelDataCountNumber of the model data.
- [out]
- Return Value
- Return
0means the API was successfully executed, otherwise the execution failed.
- Return
hbDNNRelease
Release the model that dnnPackedHandle points to.
- Parameter
- [in]
dnnPackedHandleHorizon DNN handle, pointing to multiple models.
- [in]
- Return Value
- Return
0means the API was successfully executed, otherwise the execution failed.
- Return
