error while loading shared libraries: libascendcl.so

If you get the following error:

error while loading shared libraries: libascendcl.so: cannot open shared object file: No such file or directory

Please make sure you have installed the CANN toolkit. And then run:

source /usr/local/Ascend/ascend-toolkit/set_env.sh