[VTA] Recursion error

Hi, I managed to solve this on PYNQ-Z2 v2.6.0 and TVM 0.8.dev0.

On the PYNQ board

After a fresh git clone:

Define a home directory (I was using the Jupyter terminal this might be already set if you use ssh):

export HOME=/home/xilinx

Then add a couple of other variables to .bashrc

export TVM_HOME=/path/to/tvm
export PYTHONPATH=$TVM_HOME/python:$TVM_HOME/vta/python:$PYTHONPATH
export VTA_HW_PATH=$TVM_HOME/3rdparty/vta_hw

Then run source .bashrc

Finally, just follow https://tvm.apache.org/docs/vta/install.html#pynq-side-rpc-server-build-deployment

The important part is to build two times:

make runtime vta -j2
# FIXME (tmoreau89): remove this step by fixing the cmake build
make clean; make runtime vta -j2

test_benchmark_topi_conv2 and deploy_classification then work perfectly.