Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Setting up the Environment

Before you can run code for this tutorial, you need to set up your environment.

This section walks you through:

  1. Setting up your Python environment.
  2. Verifying everything is working.
  3. Getting the tutorial code.

Step 1: Set Up Your Python Environment

We provide a containerized environment that includes all the necessary dependencies for this tutorial. To access this environment, follow the instructions given here.

Step 2: Verify the Setup

To verify that everything is set up correctly, run the following command:

python -c "import torch; print(torch.__version__)"

If you see the version of PyTorch printed without any errors, your setup is successful.

Step 3: Get the Tutorial Code

First, fork this repository to your own GitHub account. This allows you to make changes and save your work without affecting the original repository. You can find instructions on how to fork a repository here.

Finally, clone your forked repository from within a terminal session inside the container:

git clone https://github.com/YOUR-USERNAME/AdvancedTutorial.git