Rate This Document
Findability
Accuracy
Completeness
Readability

Verifying Basic Functions

After compiling and installing PyTorch, run the git command to obtain test cases and check whether the installation is successful.

  1. Go to the /path/to/pytorch/ directory.
    cd /path/to/pytorch
  2. Obtain the examples code repository.
    git clone https://github.com/pytorch/examples.git
  3. Run the test case.
    python3 examples/regression/main.py

    The execution result is as follows: