Article ID: 000087461 Content Type: Error Messages Last Reviewed: 05/20/2022

Unable to Compile Intermediate Representation (IR) Model to Blob File with compile_tool.exe

BUILT IN - ARTICLE INTRO SECOND COMPONENT
Summary

Options to create blob file from IR using compile_tool.exe.

Description
  • Executed compile_tool.exe without specifying a folder for the output blob file:

compile_tool.exe -ip U8 -d MYRIAD -VPU_NUMBER_OF_SHAVES 4 -VPU_NUMBER_OF_CMX_SLICES 4 -m <path_to_xml>

  • Executed compile_tool.exe with specifying a folder which has the write permission:

compile_tool.exe -ip U8 -d MYRIAD -VPU_NUMBER_OF_SHAVES 4 -VPU_NUMBER_OF_CMX_SLICES 4 -m <path_to_xml> -o <path_to_output_dir>

  • In both cases, encountered error: Output file can't be opened for writing
Resolution

Option 1:

  1. Start command prompt as Administrator. 

  2. Execute compile_tool.exe without specifying a folder for the output blob file:

    compile_tool.exe -ip U8 -d MYRIAD -VPU_NUMBER_OF_SHAVES 4 -VPU_NUMBER_OF_CMX_SLICES 4 -m <path_to_xml> 

  3. The output blob file is generated in the same directory as the compile_tool.exe. 

Option 2:

  1. Execute compile_tool.exe with creating an output blob file in a folder which has write permission:

    compile_tool.exe -ip U8 -d MYRIAD -VPU_NUMBER_OF_SHAVES 4 -VPU_NUMBER_OF_CMX_SLICES 4 -m <path_to_xml> -o <path_to_output_dir>\<name>.blob

  2. The output blob file is generated in the specified directory. 

Related Products

This article applies to 2 products