Visible to Intel only — GUID: pxm1656011654315
Ixiasoft
Visible to Intel only — GUID: pxm1656011654315
Ixiasoft
6.4. Running the Graph Compiler
The Intel® FPGA AI Suite compiler (dla_compiler tool) can estimate the performance of a graph and IP architecture combination. The tool can also produce a compiled network that the runtime uses in AOT (ahead-of-time) mode to control inference on the IP.
cd $COREDLA_WORK/demo/models/public/resnet-50-tf/FP32 dla_compiler \ --march $COREDLA_ROOT/example_architectures/AGX7_Performance.arch \ --network-file ./resnet-50-tf.xml \ --foutput-format=open_vino_hetero \ --o $COREDLA_WORK/demo/RN50_Performance_b1.bin \ --batch-size=1 \ --fanalyze-performance
cd $COREDLA_WORK/demo/models/public/resnet-50-tf/FP32 dla_compiler \ --march $COREDLA_ROOT/example_architectures/A10_Performance.arch \ --network-file ./resnet-50-tf.xml \ --foutput-format=open_vino_hetero \ --o $COREDLA_WORK/demo/RN50_Performance_b1.bin \ --batch-size=1 \ --fanalyze-performance
- The .arch file specifies the configuration of the IP architecture (configuration parameters such as large, small, and which activations to use).
- The .xml file (along with the .bin) describes the network.
- The .bin file stores certain parameters along with the model weights.
The output file RN50_Performance_b1.bin is the compiled network and contains the instructions and graph weights necessary to control the Intel® FPGA AI Suite IP on the FPGA device. This output file is specific to the .arch file and the graph .xml file.
dot -Tsvg hetero_subgraphs_resnet-50-tf.dot -o ResNet-50.svg