Before You Start

  • For a Python application project running in a remote operating environment, configure the operating environment before application development.
    LD_LIBRARY_PATH=$HOME/Ascend/ascend-toolkit/{version}/runtime/lib64:$LD_LIBRARY_PATH;PYTHONPATH=$HOME/Ascend/ascend-toolkit/{version}/python/site-packages/acl:$PYTHONPATH

    Set {version} as required. You can use either of the following methods:

    • Add the PYTHONPATH and Runtime paths to the .bashrc file in the operating environment.
    • During MindStudio build/run configuration, add environment variables in the Run/Debug Configuration function. For details, see Building and Running an Application Project.
  • You can develop applications using AscendCL in both the Linux and Windows environments.

If this is your first time to obtain the ACL ResNet-50 sample project, ensure that the development environment has been connected to the Internet, so that you can obtain the sample project from the following link and decompress it to the ./MindStudio/plugins/ascend-foundation/samples/inference/ directory:

  • ACL ResNet-50(C++): Link
  • ACL ResNet-50(Python): Link