Performing Inference Using a Model
After a model is initialized, call the inference API to perform inference using the model. Import a group of data and obtain the inference result. If the type of the input data is not a list consisting of uint8 or float32 arrays, "ValueError" is reported.
- API calling
hilens.Model.infer(inputs)
- Parameter description
Table 1 Parameters Parameter
Mandatory
Type
Description
inputs
Yes
List
Inference input. It is a list consisting of a group of uint8 or float32 arrays. Multiple inputs are supported.
- Return value
Model output, which is a list consisting of a group of float arrays. Multiple outputs are supported.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot