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:6a0190ee4f6e91fb164cd77201050b35c3c5893f32c4c599fc02e4aee8c306dfRUN
PILLOW_VERSION=pillow PYTORCH_URL=https://nvidia.box.com/shared/static/h1z9sw4bb1ybi0rm3tu8qdj8hs05ljbm.whl PYTORCH_WHL=torch-1.9.0-cp36-cp36m-linux_aarch64.whl TORCHAUDIO_VERSION=v0.9.0 TORCHVISION_VERSION=v0.10.0 TORCH_CMAKE_CONFIG=/usr/local/lib/python3.6/dist-packages/torch/share/cmake/Torch/TorchConfig.cmake TORCH_CUDA_ARCH_LIST=5.3;6.2;7.2 pip3 install --no-cache-dir --verbose pycuda six
02/07/2022 10:38 PM UTC
sha256:8f0cb7509f80b6fc8f3607c8a62dd2a67a7601354da9abe10f785bb3ab35a593RUN
PILLOW_VERSION=pillow PYTORCH_URL=https://nvidia.box.com/shared/static/h1z9sw4bb1ybi0rm3tu8qdj8hs05ljbm.whl PYTORCH_WHL=torch-1.9.0-cp36-cp36m-linux_aarch64.whl TORCHAUDIO_VERSION=v0.9.0 TORCHVISION_VERSION=v0.10.0 TORCH_CMAKE_CONFIG=/usr/local/lib/python3.6/dist-packages/torch/share/cmake/Torch/TorchConfig.cmake TORCH_CUDA_ARCH_LIST=5.3;6.2;7.2 echo "$PATH" &&
  echo "$LD_LIBRARY_PATH"
02/07/2022 10:33 PM UTC
sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4ENV
LD_LIBRARY_PATH=/usr/local/cuda/lib64:/usr/local/cuda-10.2/targets/aarch64-linux/lib:
02/07/2022 10:33 PM UTC
sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4ENV
PATH=/usr/local/cuda/bin:/usr/local/cuda-10.2/bin:/usr/local/cuda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
02/07/2022 10:33 PM UTC
sha256:8a3e8ab14d6dc39112a3e3622b13bb0ab778935a0119b3c8ebd1046f36bcf40cRUN
PILLOW_VERSION=pillow PYTORCH_URL=https://nvidia.box.com/shared/static/h1z9sw4bb1ybi0rm3tu8qdj8hs05ljbm.whl PYTORCH_WHL=torch-1.9.0-cp36-cp36m-linux_aarch64.whl TORCHAUDIO_VERSION=v0.9.0 TORCHVISION_VERSION=v0.10.0 TORCH_CMAKE_CONFIG=/usr/local/lib/python3.6/dist-packages/torch/share/cmake/Torch/TorchConfig.cmake TORCH_CUDA_ARCH_LIST=5.3;6.2;7.2 git clone --recursive -b ${TORCHAUDIO_VERSION} https://github.com/pytorch/audio torchaudio &&
  cd torchaudio &&
  BUILD_SOX=1 python3 setup.py install &&
  cd ../ &&
  rm -rf torchaudio
02/07/2022 10:33 PM UTC
sha256:e122c3f88bcc198b7631c44e8fb9729aa7659040fe888a14659054a284d534a6RUN
PILLOW_VERSION=pillow PYTORCH_URL=https://nvidia.box.com/shared/static/h1z9sw4bb1ybi0rm3tu8qdj8hs05ljbm.whl PYTORCH_WHL=torch-1.9.0-cp36-cp36m-linux_aarch64.whl TORCHAUDIO_VERSION=v0.9.0 TORCHVISION_VERSION=v0.10.0 TORCH_CMAKE_CONFIG=/usr/local/lib/python3.6/dist-packages/torch/share/cmake/Torch/TorchConfig.cmake 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
02/07/2022 10:21 PM UTC
sha256:33672059f9a67ba3a710c80d707f7e311dc237e40eae203f732eb42bcbbbdbb8RUN
PILLOW_VERSION=pillow PYTORCH_URL=https://nvidia.box.com/shared/static/h1z9sw4bb1ybi0rm3tu8qdj8hs05ljbm.whl PYTORCH_WHL=torch-1.9.0-cp36-cp36m-linux_aarch64.whl TORCHAUDIO_VERSION=v0.9.0 TORCHVISION_VERSION=v0.10.0 TORCH_CMAKE_CONFIG=/usr/local/lib/python3.6/dist-packages/torch/share/cmake/Torch/TorchConfig.cmake TORCH_CUDA_ARCH_LIST=5.3;6.2;7.2 apt-get update &&
  apt-get install -y --no-install-recommends cmake pkg-config libffi-dev libsndfile1 &&
  rm -rf /var/lib/apt/lists/* &&
  apt-get clean
02/07/2022 10:19 PM UTC
sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4ARG
TORCHAUDIO_VERSION
02/07/2022 10:19 PM UTC
sha256:a9708ea0d26083eaa85de427736b6e48dea90eb132b9c566f94c7ebee4f65290RUN
PILLOW_VERSION=pillow PYTORCH_URL=https://nvidia.box.com/shared/static/h1z9sw4bb1ybi0rm3tu8qdj8hs05ljbm.whl PYTORCH_WHL=torch-1.9.0-cp36-cp36m-linux_aarch64.whl TORCHVISION_VERSION=v0.10.0 TORCH_CMAKE_CONFIG=/usr/local/lib/python3.6/dist-packages/torch/share/cmake/Torch/TorchConfig.cmake TORCH_CUDA_ARCH_LIST=5.3;6.2;7.2 echo "patching _GLIBCXX_USE_CXX11_ABI in ${TORCH_CMAKE_CONFIG}" &&
  echo "contents of ${TORCH_CMAKE_CONFIG} before patching..." &&
  cat ${TORCH_CMAKE_CONFIG} &&
  sed -i 's/  set(TORCH_CXX_FLAGS "-D_GLIBCXX_USE_CXX11_ABI=")/  set(TORCH_CXX_FLAGS "-D_GLIBCXX_USE_CXX11_ABI=0")/g' ${TORCH_CMAKE_CONFIG} &&
  echo "contents of ${TORCH_CMAKE_CONFIG} after patching..." &&
  cat ${TORCH_CMAKE_CONFIG}
02/07/2022 10:19 PM UTC
sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4ARG
TORCH_CMAKE_CONFIG=/usr/local/lib/python3.6/dist-packages/torch/share/cmake/Torch/TorchConfig.cmake
02/07/2022 10:19 PM UTC