App Debugging

App Execution

For details about how to run an app, see Image Classification with Caffe ResNet-50 (Synchronous Inference).

Pay attention to the following points:

  1. For details about model conversion, see ATC Instructions.
  2. Before running an executable file, upload the directories of the initialization configuration file (acl.json), test image, and .om file to the same directory on the host.

    If no parameter is passed to the acl.init API during initialization, the directory of the initialization configuration file (acl.json) does not need to be uploaded to the host.

  3. To run the code, directly run the corresponding Python script. For example:
1
python3 main.py

Troubleshooting

If an error occurs at app run time, obtain the log file (see Log Reference for details) and inspect the error details. Take the following steps to fix the error:

  • If the API calling logic is incorrect due to API restrictions, refer to Restrictions and the API-specific restrictions to adjust your API calling logic.
  • If the error is reported during operator running on the AI Core, you need to further locate the cause by calling the pyacl API to obtain the description of the error operator for further analysis. For details, see AI Core Troubleshooting.