Verifying Basic Functions
After compiling and installing PyTorch, run the git command to obtain test cases and check whether the installation is successful.
- Go to the /path/to/pytorch/ directory.
cd /path/to/pytorch
- Obtain the examples code repository.
git clone https://github.com/pytorch/examples.git
- Run the test case.
python3 examples/regression/main.py
The execution result is as follows:

Parent topic: Running and Verification