Custom OP Workflow - 2.0 English

Vitis AI User Guide (UG1414)

Document ID
Release Date
2.0 English

In VAI2.0 release, Pytorch model and Tensorflow2 model with custom op are supported. The basic workflow for custom op is shown below.

Figure 1. Custom Op Workflow
The following are the steps in the workflow:
  1. Define the OP as a custom OP which is unknown to XIR and then quantize the model.
  2. Compile the quantized model.
  3. Register and implement the custom OP.
  4. Deploy the model with graph_runner APIs
We will give examples for the following two models respectively.
  • MNIST model based on Tensorflow2
  • Pointpillars model based on Pytorch