@laurent049pc the SD card image already comes with the GPU drivers, CUDA Toolkit, ect pre-installed on it. The Jetson’s integrated GPU drivers are different than the discrete GPU drivers in the ubuntu apt repo. Since you installed those, I would just re-flash your SD card and start fresh to alleviate any conflicts from them in the future.
Install one of the pre-built PyTorch wheels that have CUDA support for your version of JetPack from this thread:
Or you can also use l4t-pytorch container which comes with PyTorch, torchvision, and torchaudio pre-installed in them.