Hi sir,
Thank you for the hard work in developing this useful project.
I am having some trouble getting the “Overlay” command to work with the Regression example you provided in PyTorch_Installation/Example, where the kernel seems to freeze when I call this command to add the backward_lite_features.bit bitstream in PyTorch_Installation/Examples.
I recently successfully built the PYNQv2.4 image for the ZCU102 using this reference.
I followed the helpful PyTorch installation instructions that you provided here.
Due to my workplace network restrictions, I was unable to get an internet connection directly to my board, so I was actually unable to complete most of the beginning of your tutorial, including the “apt-get update/install”, “dd/SWAP file”, and “git clone” related sections.
In fact I ended up skipping to the step where we clone the PyTorch repository. I actually cloned the PyTorch repository and checked out the appropriate branch all from my host PC, and used cyberduck SFTP to copy this repo from my host PC to my ZCU102 board. After copying the PyTorch repo to the board, I ran the “python3 setup.py build/develop” commands, and verified that it seemed to work with your simple test example, shown below:
python3
import torch
x = torch.randn(5,5)
y = torch.randn(5,5)
print(x+y)
Next, I moved to the PyTorch_Installation/Example folder, and tried to work through the RegressionApplication.ipynb example.
Everything went smoothly until I tried to call the Overlay command in cell #5, where the board immediately froze up, as the TCP/IP connection was lost and the serial terminal became nonresponsive.
Is this because I am trying to use this command to add a bitstream that is incompatible with my board, or made for a different board? Or maybe I did not install your PYNQ-Torch package correctly? Or maybe I did not build the PYNQv2.4 image correctly for the ZCU102?
Best,
-Gheorghe Schreiber