5. Common Errors When Using an Custom Model
When you use a custom model with Intel® FPGA AI Suite, you might get one of these errors when generating the OpenVINO™ IR for the model.
Shape Not Fully Defined Error
A "shape not fully defined" error looks like the following message:
[ ERROR ] Shape [ -1 299 299 3] is not fully defined for output 0 of "serving_default_input_1".
Use --input_shape with positive integers to override model input shapes.
For instructions on how to fix this error, review the documentation at the following URL:
mo --input_model <model path>.onnx --input_shape [1,299,299,3] --input <input layer>
Unsupported Layer Type Error
An "unsupported layer type" error looks like the following message:
[ ERROR ] Failed to compile layer "<number of layer>": unsupported layer type "<layer name>"
- Use a model with supported layers.
- Modify the model to remove the unsupported layer or replace it.
- Run the layer in parallel on a supported device
Running the layer in parallel on a supported device requires you to enable heterogeneous execution in OpenVINO™ . For details, refer to the following URL:
https://docs.openvino.ai/latest/openvino_docs_OV_UG_Hetero_execution.html
Language | Code Example |
---|---|
Python | |
C++ | |