cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Participant
Participant
982 Views
Registered: ‎07-30-2018

Pytorch VAI_C compiler

Jump to solution

Hi, @jasonwu 

Xilinx has released the Vitis AI Library v1.2 recently. There, they have introduced Pytorch framework model development. For this framework, I couldn't find the VAI_C compiler and its usage.

I just want to know, whether this domain-specific compiler under development?

Thank you.
Natheesan

1 Solution

Accepted Solutions
Xilinx Employee
Xilinx Employee
892 Views
Registered: ‎11-29-2007

Hello,

please refer to UG1414, be sure this is the latest release 1.2 of 2020/07/07

vai_q_pytorch documentation starts from page 65

Compiler information at page 88:

For Pytorch, since the quantizer NNDCT will output the quantized model in XIR format directly, we will use vai_c_xir to compile it.
vai_c_xir -i /PATH/TO/quantized.xmodel -a /PATH/TO/arch/DPUCAHX8H/PLATFORM/arch.json -o /OUTPUTPATH -n netname

View solution in original post

4 Replies
Xilinx Employee
Xilinx Employee
967 Views
Registered: ‎11-29-2007

hello,

the Pytorch conda environment should be in GPU docker

Participant
Participant
950 Views
Registered: ‎07-30-2018

Hi, @gguasti 

Thanks for the response. Whether the next version of the Vitis AI User Guide (UG1414 V1.1) has been released?

Thank you.
Natheesan

0 Kudos
Reply
Participant
Participant
911 Views
Registered: ‎07-30-2018

Hi, @gguasti @jasonwu @jheaton @meherp 

Regarding the Pytorch framework, I could only see some documentations (https://github.com/Xilinx/Vitis-AI/tree/master/Vitis-AI-Quantizer/vai_q_pytorch) related to Vitis AI Quantizer for Pytorch.

However, I couldn't see any documentation related to the Vitis AI Compiler for Pytorch (vai_c_pytorch). If you have any documents related to this compiler and its usage, could you share it with me?

Thanks,
Natheesan

Xilinx Employee
Xilinx Employee
893 Views
Registered: ‎11-29-2007

Hello,

please refer to UG1414, be sure this is the latest release 1.2 of 2020/07/07

vai_q_pytorch documentation starts from page 65

Compiler information at page 88:

For Pytorch, since the quantizer NNDCT will output the quantized model in XIR format directly, we will use vai_c_xir to compile it.
vai_c_xir -i /PATH/TO/quantized.xmodel -a /PATH/TO/arch/DPUCAHX8H/PLATFORM/arch.json -o /OUTPUTPATH -n netname

View solution in original post