Compilation Example - 2.0 English

Vitis AI RNN User Guide (UG1563)

Document ID
UG1563
Release Date
2022-01-20
Version
2.0 English

To compile a sentiment RNN model for an Alveo™ U50 data center accelerator card with batch=4 engine, follow these steps:

  1. Activate the vai_c_rnn conda environment in the docker image:
    • For Pytorch:
      conda activate vitis-ai-rnn-pytorch
    • For Tensorflow:
      conda activate vitis-ai-rnn-tensorflow
  2. Compile

    Assuming the quantized models for sentiment are prepared in the XMODEL directory, run the compilation command and get results. The output XMODEL is present in the output directory.

    Figure 1. Compile XMODEL