Get the name list and number of the models that dnnPackedHandle points to.
modelNameList List of model names.modelNameCount Number of model names.dnnPackedHandle Horizon DNN handle, pointing to multiple models.0 means the API was successfully executed, otherwise the execution failed.Get the handle of a model from the model list that dnnPackedHandle points to. The caller can use the returned dnnHandle across functions and threads.
dnnHandle DNN handle, pointing to one model.dnnPackedHandle DNN handle, pointing to multiple models.modelName Model name.0 means the API was successfully executed, otherwise the execution failed.Get the number of the input tensors of the model that dnnHandle points to.
inputCount Number of input tensors of the model.dnnHandle DNN handle, pointing to one model.0 means the API was successfully executed, otherwise the execution failed.Get the name of the input tensors of the model that dnnHandle points to.
name Name of the input tensor of the model.dnnHandle DNN handle, pointing to one model.inputIndex Index of the input tensor of the model.0 means the API was successfully executed, otherwise the execution failed.Get the property of the specific input tensor of the model that dnnHandle points to.
properties Info of the input tensor.dnnHandle DNN handle, pointing to one model.inputIndex Index of the input tensor of the model.0 means the API was successfully executed, otherwise the execution failed.Get the number of the output tensors of the model that dnnHandle points to.
outputCount Number of the output tensors of the model.dnnHandle DNN handle, pointing to one model.0 means the API was successfully executed, otherwise the execution failed.Get the names of the output tensors of the model that dnnHandle points to.
name Name of the output tensor of the model.dnnHandle DNN handle, pointing to one model.outputIndex Index of the output tensor of the model.0 means the API was successfully executed, otherwise the execution failed.Get the property of the specific output tensor of the model that dnnHandle points to.
properties Info of the output tensor.dnnHandle DNN handle, pointing to one model.outputIndex Index of the output tensor of the model.0 means the API was successfully executed, otherwise the execution failed.Get the description information associated with the specific input of the model that dnnHandle points to.
desc Address of the description information.size Size of the description information.type Type of the description information, please refer to hbDNNDescType.dnnHandle DNN handle, pointing to one model.inputIndex Index of the input tensor of the model.0 means the API was successfully executed, otherwise the execution failed.Get the description information associated with the specific output of the model that dnnHandle points to.
desc Address of the description information.size Size of the description information.type Type of the description information, please refer to hbDNNDescType.dnnHandle DNN handle, pointing to one model.outputIndex Index of the output tensor of the model.0 means the API was successfully executed, otherwise the execution failed.Get the description information associated with the model that dnnHandle points to.
desc Address of the description information.size Size of the description information.type Type of the description information, please refer to hbDNNDescType.dnnHandle DNN handle, pointing to one model.0 means the API was successfully executed, otherwise the execution failed.Get the number of BPU cores at compile time associated with the model that dnnHandle points to.
bpuCoreNum The number of BPU cores at compile time.dnnHandle DNN handle, pointing to one model.0 means the API was successfully executed, otherwise the execution failed.When the obtained bpuCoreNum value is greater than 1, the model is a multi-core model.
When calling hbUCPSubmitTask to submit a multi-core model task, ensure that the number of BPU cores in the control parameter hbUCPSchedParam.backend is exactly equal to bpuCoreNum obtained through this interface. Setting HB_UCP_CORE_ANY or HB_UCP_BPU_CORE_ANY is not allowed.
For example, when the obtained bpuCoreNum value is 2, you need to set hbUCPSchedParam.backend = HB_UCP_BPU_CORE_0 | HB_UCP_BPU_CORE_1. This setting method is understood as running the model on HB_UCP_BPU_CORE_0 and HB_UCP_BPU_CORE_1. Note that this is different from the setting method of selecting two backends during single-core model inference.
Get the description information associated with the hbm that dnnPackedHandle and index points to.
desc Address of the description information.size Size of the description information.type Type of the description information, please refer to hbDNNDescType.dnnPackedHandle Horizon DNN handle, pointing to multiple models.。index hbm index。0 means the API was successfully executed, otherwise the execution failed.hbDNNInitializeFromFiles or hbDNNInitializeFromDDR can support loading multiple hbms at the same time, so the index range should be [0, modelFileCount) or [0, modelDataCount),
here modelFileCount and modelDataCount are parameters of the two interface parameters respectively.