To install and use PyTorch, we need to properly set up the Python development environment first. So, in this section, we will first talk about how to set up the Python environment, then how to install PyTorch either with official release binaries or by building from source. At the end of this section, we will introduce you to a lightweight, yet extremely powerful code editor tool, Microsoft VS Code, and show you how to configure it for PyTorch programming.
Installing PyTorch on Windows and Linux
Setting up the Python environment
In the following sections, we will walk you through how to set up the Python environment and how to install or build PyTorch on Windows 10 and Ubuntu 18.04. We assume that, of course, you have successfully...