Skip to content

Commit b34d1ac

Browse files
svekarsmsaroufim
andauthored
Install dev-requirements.txt in doc build (#224)
Install dev-requirements.txt --------- Co-authored-by: Mark Saroufim <marksaroufim@meta.com>
1 parent cce5960 commit b34d1ac

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

.github/workflows/doc_build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ jobs:
4141
run: |
4242
python -m pip install torch
4343
python -m pip install -e .
44+
pip install -r dev-requirements.txt
4445
cd docs
4546
python -m pip install -r requirements.txt
4647
- name: Build docs

docs/source/api_ref_sparsity.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
================
44
torchao.sparsity
55
================
6-
6+
.. automodule:: torchao.sparsity
77
.. currentmodule:: torchao.sparsity
88

99
.. autosummary::
@@ -12,3 +12,7 @@ torchao.sparsity
1212

1313
WandaSparsifier
1414
PerChannelNormObserver
15+
apply_sparse_semi_structured
16+
apply_fake_sparsity
17+
18+

docs/source/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ with more content coming soon.
9292
:maxdepth: 1
9393
:caption: API Reference
9494

95-
api_ref_intro
9695
api_ref_sparsity
96+
api_ref_intro
9797
api_ref_quantization
9898
api_ref_dtypes
99-
..
99+
..
100100
api_ref_kernel

0 commit comments

Comments
 (0)