Forum Discussion
RubenPadial
Contributor
2 years agoHello @JohnT_Intel ,
In the file attached yo will find the following files:
- SavedModel: Model exported from TF
- IR: Model converted from TF to Intermediate Representation (IR) with model optimizer function:
mo
--saved_model_dir "{path_savedModelPath}"
--input_shape "{lst_inputShape}"
--model_name "{str_modelName}"
--data_type FP16
--output_dir "{path_irTargetPath}"
where
- input_shape = [1,28,28,1]
- path_savedModelPath: Path to SaveModel files
- str_modelName = "CustomModel"
- path_irTargetPath: Target path to save .xml and .bin files
- A10_Generic.arch: IP configuration
After getting the .bin and .xml files I checked that IR model works properly and I tried to compile using the following dlaCommand command:
dla_compiler
--march "{path_archPath}"
--network-file "{path_xmlPath}"
--foutput-format=open_vino_hetero
--o "{path_binPath}"
--batch-size=1
--fanalyze-performance
where
- path_archPath: Path to "A10_Generic.arch" file
- path_xmlPath: Path to IR .xml file from previous step
- path_binPath: Path to IR .bin file from previous step
Thank you for your help