Meta
Meta
NVIDIA L4T PyTorch
Container
Meta
Meta
NVIDIA L4T PyTorch

PyTorch is a GPU accelerated tensor computational framework with a Python front end. This container contains PyTorch and torchvision pre-installed in a Python 3 environment to get up & running quickly with PyTorch on Jetson.

LayerLabelCreated
sha256:aebadf269b937bb6419bd754cbf95325fd9578b2ae1235a33bf59c730dd1b08aRUN
OPENCV_DEB=OpenCV-4.5.0-aarch64.tar.gz OPENCV_URL=https://nvidia.box.com/shared/static/2hssa5g3v28ozvo3tc3qwxmn78yerca9.gz PYTORCH_URL=https://developer.download.nvidia.com/compute/redist/jp/v50/pytorch/torch-1.12.0a0+8a1a93a9.nv22.5-cp38-cp38-linux_aarch64.whl PYTORCH_WHL=torch-1.12.0a0+8a1a93a9.nv22.5-cp38-cp38-linux_aarch64.whl TORCHAUDIO_VERSION=v0.12.0 TORCHVISION_VERSION=v0.13.0 TORCH_CUDA_ARCH_LIST=5.3;6.2;7.2 pip3 install --no-cache-dir --verbose pycuda six
08/04/2022 7:13 PM UTC
sha256:8efe05b15224e4a52372688e68fdd0f6b9d01e16595c278b0043a811316b2cd4RUN
OPENCV_DEB=OpenCV-4.5.0-aarch64.tar.gz OPENCV_URL=https://nvidia.box.com/shared/static/2hssa5g3v28ozvo3tc3qwxmn78yerca9.gz PYTORCH_URL=https://developer.download.nvidia.com/compute/redist/jp/v50/pytorch/torch-1.12.0a0+8a1a93a9.nv22.5-cp38-cp38-linux_aarch64.whl PYTORCH_WHL=torch-1.12.0a0+8a1a93a9.nv22.5-cp38-cp38-linux_aarch64.whl TORCHAUDIO_VERSION=v0.12.0 TORCHVISION_VERSION=v0.13.0 TORCH_CUDA_ARCH_LIST=5.3;6.2;7.2 echo "$PATH" &&
  echo "$LD_LIBRARY_PATH"
08/04/2022 7:06 PM UTC
sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4ENV
LD_LIBRARY_PATH=/usr/local/cuda/lib64:/usr/local/cuda/lib64:
08/04/2022 7:06 PM UTC
sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4ENV
PATH=/usr/local/cuda/bin:/usr/local/cuda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
08/04/2022 7:06 PM UTC
sha256:8a9f7dbfb4595d407231d42e5c2240ade8884ef8653fdee87121cc8b791ffd53RUN
OPENCV_DEB=OpenCV-4.5.0-aarch64.tar.gz OPENCV_URL=https://nvidia.box.com/shared/static/2hssa5g3v28ozvo3tc3qwxmn78yerca9.gz PYTORCH_URL=https://developer.download.nvidia.com/compute/redist/jp/v50/pytorch/torch-1.12.0a0+8a1a93a9.nv22.5-cp38-cp38-linux_aarch64.whl PYTORCH_WHL=torch-1.12.0a0+8a1a93a9.nv22.5-cp38-cp38-linux_aarch64.whl TORCHAUDIO_VERSION=v0.12.0 TORCHVISION_VERSION=v0.13.0 TORCH_CUDA_ARCH_LIST=5.3;6.2;7.2 cd /tmp &&
  ./opencv_install.sh ${OPENCV_URL} ${OPENCV_DEB}
08/04/2022 7:06 PM UTC
sha256:06081790ce74ad9f921eb1a9dd7d5694c6fc177604cd9efd8c802f1e8ee5c810COPY
file:738b23d3effc8e9ffc54a87257f6eadd655f97205a53b370e43cf91ac36a2748 in /tmp/opencv_install.sh
08/04/2022 7:05 PM UTC
sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4ARG
OPENCV_DEB=OpenCV-4.5.0-aarch64.tar.gz
08/04/2022 7:05 PM UTC
sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4ARG
OPENCV_URL=https://nvidia.box.com/shared/static/5v89u6g5rb62fpz4lh0rz531ajo2t5ef.gz
08/04/2022 7:05 PM UTC
sha256:57679422eb318c391a488ab1d00682d665d51d0885881f131a57dfecfdccd59cRUN
PYTORCH_URL=https://developer.download.nvidia.com/compute/redist/jp/v50/pytorch/torch-1.12.0a0+8a1a93a9.nv22.5-cp38-cp38-linux_aarch64.whl PYTORCH_WHL=torch-1.12.0a0+8a1a93a9.nv22.5-cp38-cp38-linux_aarch64.whl TORCHAUDIO_VERSION=v0.12.0 TORCHVISION_VERSION=v0.13.0 TORCH_CUDA_ARCH_LIST=5.3;6.2;7.2 git clone --recursive -b ${TORCHAUDIO_VERSION} https://github.com/pytorch/audio torchaudio &&
  cd torchaudio &&
  sed -i 's#  URL https://zlib.net/zlib-1.2.11.tar.gz#  URL https://zlib.net/zlib-1.2.12.tar.gz#g' third_party/zlib/CMakeLists.txt ||
  echo "failed to patch torchaudio/third_party/zlib/CMakeLists.txt" &&
  sed -i 's#  URL_HASH SHA256=c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1#  URL_HASH SHA256=91844808532e5ce316b3c010929493c0244f3d37593afd6de04f71821d5136d9#g' third_party/zlib/CMakeLists.txt ||
  echo "failed to patch torchaudio/third_party/zlib/CMakeLists.txt" &&
  BUILD_SOX=1 python3 setup.py install &&
  cd ../ &&
  rm -rf torchaudio
08/04/2022 7:05 PM UTC
sha256:03059959f3639d96f52e148e2f9c48e6689ddfbecb7ad9eee1c24fa92fc040a8RUN
PYTORCH_URL=https://developer.download.nvidia.com/compute/redist/jp/v50/pytorch/torch-1.12.0a0+8a1a93a9.nv22.5-cp38-cp38-linux_aarch64.whl PYTORCH_WHL=torch-1.12.0a0+8a1a93a9.nv22.5-cp38-cp38-linux_aarch64.whl TORCHAUDIO_VERSION=v0.12.0 TORCHVISION_VERSION=v0.13.0 TORCH_CUDA_ARCH_LIST=5.3;6.2;7.2 pip3 install --no-cache-dir scikit-build &&
  pip3 install --no-cache-dir ninja &&
  pip3 install --no-cache-dir --verbose pysoundfile
08/04/2022 6:43 PM UTC