我要评分
获取效率
正确性
完整性
易理解

Verifying ACL

If ACL acceleration is enabled, verify basic functions and then the ACL function. The test cases are all from the examples code repository.

  1. Go to the /path/to/pytorch/examples/mnist directory.
    1
    cd /path/to/pytorch/examples/mnist
    
  2. Download the Python dependency package.
    1
    pip install torchvision==0.16.2 --no-deps
    
  3. Run the test case.
    1
    python3 main.py
    

    The execution result is as follows:

    The mnist test case contains multiple epochs and the training takes a long time. You only need to complete the training of one epoch for function verification.