This repository is a collection of documentation, api and stuff like that for torch_npu (Ascend NPU for PyTorch).
If you are interested in the project, please feel free to contribute it.
We use sphinx and rst file to create docs and you need to refer to rst syntax for help. Here is how you can create a new docs:
- Create a rst file. You can put it anywhere, but it must be better to classify it.
- Add the rst into the index.rst
When the development is ready, you can check and test it locally by following the directives below:
- Install the required dependencies:
pip install -r requirements.txt
- Building:
make html
- Server on localhost:
python -m http.server -d _build/html 4000
Then open localhost:4000 in your browser.