pytorch
7d2526ab - Quantization docs: rewrite API reference to be more automated (#66201)

Commit
4 years ago
Quantization docs: rewrite API reference to be more automated (#66201) Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/66201 Description: This PR switches the quantization API reference to use `autosummary` for each section. We define the sections and manually write a list of modules/functions/methods to include, and sphinx does the rest. A result is a single page where we have every quantization function and module with a quick autogenerated blurb, and user can click through to each of them for a full documentation page. This mimics how the `torch.nn` and `torch.nn.functional` doc pages are set up. In detail, for each section before this PR: * creates a new section using `autosummary` * adds all modules/functions/methods which were previously in the manual section * adds any additional modules/functions/methods which are public facing but not previously documented * deletes the old manual summary and all links to it Test Plan: ``` cd docs make html python -m http.server // renders well, links work ``` Reviewed By: jerryzh168 Differential Revision: D31447615 Pulled By: vkuzo fbshipit-source-id: 09874ad9629f9c00eeab79c406579c6abd974901
Author
Parents
Loading