diff --git a/conf.py b/conf.py index 6f22c1a1749..830f5a1d3ea 100644 --- a/conf.py +++ b/conf.py @@ -66,10 +66,17 @@ # ones. extensions = [ 'sphinxcontrib.katex', + 'sphinx.ext.intersphinx', 'sphinx_copybutton', 'sphinx_gallery.gen_gallery', ] +intersphinx_mapping = { + "torch": ("https://pytorch.org/docs/stable/", None), + "torchaudio": ("https://pytorch.org/audio/stable/", None), + "torchtext": ("https://pytorch.org/text/stable/", None), + "torchvision": ("https://pytorch.org/vision/stable/", None), +} # -- Sphinx-gallery configuration --------------------------------------------