File tree Expand file tree Collapse file tree 4 files changed +6
-41
lines changed Expand file tree Collapse file tree 4 files changed +6
-41
lines changed Original file line number Diff line number Diff line change 59
59
60
60
echo "::endgroup::"
61
61
echo "::group::Install PyTorch"
62
- # conda install \
63
- # --yes \
64
- # --quiet \
65
- # -c "pytorch-${CHANNEL}" \
66
- # -c nvidia "pytorch-${CHANNEL}"::pytorch[build="*${CU_VERSION}*"] \
67
- # "${CUDATOOLKIT}"
68
62
69
63
GPU_ARCH_ID=cu126 # This is hard-coded and must be consistent with gpu-arch-version.
70
64
PYTORCH_WHEEL_INDEX="https://download.pytorch.org/whl/${CHANNEL}/${GPU_ARCH_ID}"
@@ -75,19 +69,15 @@ jobs:
75
69
conda install --quiet --yes cmake>=3.18.0 ninja
76
70
pip3 install --progress-bar off -v -e . --no-use-pep517
77
71
72
+ # TODO: Need to rely on torchcodec instead of building ffmpeg from source.
78
73
echo "::endgroup::"
79
74
echo "::group::Build FFmpeg"
80
75
.github/scripts/ffmpeg/build_gpu.sh
81
76
82
77
echo "::endgroup::"
83
78
echo "::group::Install other dependencies"
84
- conda install \
85
- --quiet --yes \
86
- -c conda-forge \
87
- sox libvorbis pandoc doxygen pysoundfile
88
- pip install --progress-bar off \
89
- git+https://github.com/kpu/kenlm/ flashlight-text \
90
- -r docs/requirements.txt -r docs/requirements-tutorials.txt
79
+
80
+ pip install --progress-bar off -r docs/requirements.txt -r docs/requirements-tutorials.txt
91
81
92
82
echo "::endgroup::"
93
83
echo "::group::Build documentation"
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ docset: html
24
24
# Catch-all target: route all unknown targets to Sphinx using the new
25
25
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
26
26
% : Makefile
27
- doxygen source/Doxyfile
27
+ # doxygen source/Doxyfile
28
28
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
29
29
@python post_process_dispatcher.py $(BUILDDIR)
30
30
Original file line number Diff line number Diff line change @@ -2,9 +2,6 @@ Jinja2<3.1.0
2
2
matplotlib <= 3.8
3
3
pyparsing < 3 ,>= 2.0.2
4
4
5
- # C++ docs
6
- breathe == 4.34.0
7
-
8
5
# Note:
9
6
# When changing Sphinx-related packages, make sure that the custom behaviors in the following
10
7
# locations are working as expected.
@@ -17,15 +14,3 @@ sphinxcontrib.katex==0.8.6
17
14
sphinxcontrib.bibtex
18
15
sphinx_gallery == 0.11.1
19
16
nbsphinx == 0.8.8
20
-
21
- # https://github.com/bmcfee/resampy/issues/106
22
- # Since 2022-07-07 build_docs CI job started to fail.
23
- # Pinning resampy to 0.2.2 resolves this.
24
- # The real cause is not know at the moment but the use
25
- # of librosa seems to cause this
26
- # https://github.com/bmcfee/resampy/issues/106
27
- # In our case, the tutorial timed out is online_asr_tutorial,
28
- # which itself does not use resampy
29
- # However audio_feature_augmentation_tutorial is executed before that,
30
- # which uses librosa.
31
- resampy == 0.2.2
Original file line number Diff line number Diff line change 53
53
"sphinxcontrib.bibtex" ,
54
54
"sphinx_gallery.gen_gallery" ,
55
55
"nbsphinx" ,
56
- "breathe" ,
57
56
]
58
57
59
- breathe_projects = {"libtorio" : "cpp/xml" }
60
-
61
- breathe_default_project = "libtorio"
62
-
63
- breathe_projects_source = {
64
- "libtorio" : (
65
- "../../src/libtorio/ffmpeg/" ,
66
- ["stream_reader/stream_reader.h" , "stream_writer/stream_writer.h" ],
67
- )
68
- }
69
58
70
59
nbsphinx_requirejs_path = ""
71
60
72
61
autodoc_member_order = "bysource"
62
+ autodoc_mock_imports = ['torchaudio.models.decoder' ]
73
63
74
64
# katex options
75
65
#
@@ -121,7 +111,7 @@ def _get_pattern():
121
111
}
122
112
123
113
ret = {"filename_pattern" : "tutorial.py" }
124
- no_build = r"/examples/tutorials/asr_inference_with_cuda_ctc_decoder_tutorial .py"
114
+ no_build = r".*ctc_decoder_tutorial .py"
125
115
if os .getenv ("GALLERY_PATTERN" ):
126
116
# See https://github.com/pytorch/tutorials/blob/cbf2238df0e78d84c15bd94288966d2f4b2e83ae/conf.py#L75-L83
127
117
ret ["ignore_pattern" ] = r"(/(?!" + re .escape (os .getenv ("GALLERY_PATTERN" )) + r")[^/]+$)"
You can’t perform that action at this time.
0 commit comments