How to Run an Operator
Prerequisites
- CANN
- CANN-NNAL (Ascend-Transformer-Boost)
- TorchNPU
Compilation and Installation
1. Environment Variable Settings
# The default path is used. Change it if necessary.
source /usr/local/Ascend/ascend-toolkit/set_env.sh
# The default path is used. Change it if necessary.
source /usr/local/Ascend/nnal/atb/set_env.sh
- Latest TorchNPU version
- Latest CANN version
3. Installation Scripts
python3 setup.py build
python3 setup.py bdist_wheel
pip3 install dist/*.whl --force-reinstall