mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
# Summary <!-- copilot:summary --> ### <samp>🤖 Generated by Copilot at 293ded1</samp> This pull request adds support for using Visual Studio Code Remote - Containers extension with the pytorch project. It adds a `.devcontainer` folder with a `devcontainer.json` file, a `Dockerfile`, and a `noop.txt` file that configure and create a dev container with Anaconda and Python 3. <!-- copilot:poem --> ### <samp>🤖 Generated by Copilot at d6b9cd7</samp> > _`devcontainer.json`_ > _Configures PyTorch containers_ > _For CPU or GPU_ ## Related to: https://github.com/pytorch/pytorch/issues/92838 Pull Request resolved: https://github.com/pytorch/pytorch/pull/98252 Approved by: https://github.com/ZainRizvi
12 lines
409 B
Bash
12 lines
409 B
Bash
#!/usr/bin/env bash
|
|
# Run this command from the PyTorch directory after cloning the source code using the “Get the PyTorch Source“ section below
|
|
pip install -r requirements.txt
|
|
git submodule sync
|
|
git submodule update --init --recursive
|
|
|
|
# This takes some time
|
|
make setup_lint
|
|
|
|
# Add CMAKE_PREFIX_PATH to bashrc
|
|
echo 'export CMAKE_PREFIX_PATH=${CONDA_PREFIX:-"$(dirname $(which conda))/../"}' >> ~/.bashrc
|