Skip to content

Commit

Permalink
Install dev-requirements.txt in doc build (pytorch#224)
Browse files Browse the repository at this point in the history
Install dev-requirements.txt

---------

Co-authored-by: Mark Saroufim <[email protected]>
  • Loading branch information
svekars and msaroufim authored May 7, 2024
1 parent ac14b4b commit 4b12b6b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/doc_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ jobs:
run: |
python -m pip install torch
python -m pip install -e .
pip install -r dev-requirements.txt
cd docs
python -m pip install -r requirements.txt
- name: Build docs
Expand Down
6 changes: 5 additions & 1 deletion docs/source/api_ref_sparsity.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
================
torchao.sparsity
================

.. automodule:: torchao.sparsity
.. currentmodule:: torchao.sparsity

.. autosummary::
Expand All @@ -12,3 +12,7 @@ torchao.sparsity

WandaSparsifier
PerChannelNormObserver
apply_sparse_semi_structured
apply_fake_sparsity


4 changes: 2 additions & 2 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ with more content coming soon.
:maxdepth: 1
:caption: API Reference

api_ref_intro
api_ref_sparsity
api_ref_intro
api_ref_quantization
api_ref_dtypes
..
..
api_ref_kernel

0 comments on commit 4b12b6b

Please sign in to comment.