We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Docs builds are failing
Docs builds seem to have been failing since 1.8.5 release. We should fix this before the 1.8.6 release.

https://readthedocs.org/projects/pyro-ppl/builds/20847164/
<img width="812" alt="image" src="https://github.com/pyro-ppl/pyro/assets/648532/45149fae-a72d-481a-aaf9-73262d50aa92">


--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `docs/source/conf.py`
Content:
```
1 # Copyright (c) 2017-2019 Uber Technologies, Inc.
2 # SPDX-License-Identifier: Apache-2.0
3 
4 import os
5 import sys
6 
7 import sphinx_rtd_theme
8 
9 # import pkg_resources
10 
11 # -*- coding: utf-8 -*-
12 #
13 # Pyro documentation build configuration file, created by
14 # sphinx-quickstart on Thu Jun 15 17:16:14 2017.
15 #
16 # This file is execfile()d with the current directory set to its
17 # containing dir.
18 #
19 # Note that not all possible configuration values are present in this
20 # autogenerated file.
21 #
22 # All configuration values have a default; values that are commented out
23 # serve to show the default.
24 
25 # If extensions (or modules to document with autodoc) are in another directory,
26 # add these directories to sys.path here. If the directory is relative to the
27 # documentation root, use os.path.abspath to make it absolute, like shown here.
28 #
29 sys.path.insert(0, os.path.abspath("../.."))
30 
31 # -- General configuration ------------------------------------------------
32 
33 # If your documentation needs a minimal Sphinx version, state it here.
34 #
35 # needs_sphinx = '1.0'
36 
37 # Add any Sphinx extension module names here, as strings. They can be
38 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
39 # ones.
40 extensions = [
41     "sphinx.ext.intersphinx",  #
42     "sphinx.ext.todo",  #
43     "sphinx.ext.mathjax",  #
44     "sphinx.ext.ifconfig",  #
45     "sphinx.ext.viewcode",  #
46     "sphinx.ext.githubpages",  #
47     "sphinx.ext.graphviz",  #
48     "sphinx.ext.autodoc",
49     "sphinx.ext.doctest",
50     'sphinx.ext.napoleon',
51 ]
52 
53 # Disable documentation inheritance so as to avoid inheriting
54 # docstrings in a different format, e.g. when the parent class
55 # is a PyTorch class.
56 
57 autodoc_inherit_docstrings = False
58 
59 # Add any paths that contain templates here, relative to this directory.
60 templates_path = ["_templates"]
61 
62 # The suffix(es) of source filenames.
63 # You can specify multiple suffix as a list of string:
64 #
65 # source_suffix = ['.rst', '.md']
66 source_suffix = ".rst"
67 
68 # The master toctree document.
69 master_doc = "index"
70 
71 # General information about the project.
72 project = u"Pyro"
73 copyright = u"2017-2018, Uber Technologies, Inc"
74 author = u"Uber AI Labs"
75 
76 # The version info for the project you're documenting, acts as replacement for
77 # |version| and |release|, also used in various other places throughout the
78 # built documents.
79 
80 version = ""
81 
82 if "READTHEDOCS" not in os.environ:
83     # if developing locally, use pyro.__version__ as version
84     from pyro import __version__  # noqaE402
85 
86     version = __version__
87 
88 # release version
89 release = version
90 
91 # The language for content autogenerated by Sphinx. Refer to documentation
92 # for a list of supported languages.
93 #
94 # This is also used if you do content translation via gettext catalogs.
95 # Usually you set "language" from the command line for these cases.
96 language = "en"
97 
98 # List of patterns, relative to source directory, that match files and
99 # directories to ignore when looking for source files.
100 # This patterns also effect to html_static_path and html_extra_path
101 exclude_patterns = []
102 
103 # The name of the Pygments (syntax highlighting) style to use.
104 pygments_style = "sphinx"
105 
106 # If true, `todo` and `todoList` produce output, else they produce nothing.
107 todo_include_todos = True
108 
109 # do not prepend module name to functions
110 add_module_names = False
111 
112 # -- Options for HTML output ----------------------------------------------
113 
114 # logo
115 html_logo = "_static/img/pyro_logo_wide.png"
116 
117 # logo
118 html_favicon = "_static/img/favicon/favicon.ico"
119 
120 # The theme to use for HTML and HTML Help pages.  See the documentation for
121 # a list of builtin themes.
122 #
123 html_theme = "sphinx_rtd_theme"
124 html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
125 
126 # Theme options are theme-specific and customize the look and feel of a theme
127 # further.  For a list of options available for each theme, see the
128 # documentation.
129 
130 html_theme_options = {
131     "navigation_depth": 3,
132     "logo_only": True,
133 }
134 
135 # Add any paths that contain custom static files (such as style sheets) here,
136 # relative to this directory. They are copied after the builtin static files,
137 # so a file named "default.css" will overwrite the builtin "default.css".
138 html_static_path = ["_static"]
139 html_style = "css/pyro.css"
140 
141 # -- Options for HTMLHelp output ------------------------------------------
142 
143 # Output file base name for HTML help builder.
144 htmlhelp_basename = "Pyrodoc"
145 
146 # -- Options for LaTeX output ---------------------------------------------
147 
148 latex_elements = {
149     # The paper size ('letterpaper' or 'a4paper').
150     #
151     # 'papersize': 'letterpaper',
152     # The font size ('10pt', '11pt' or '12pt').
153     #
154     # 'pointsize': '10pt',
155     # Additional stuff for the LaTeX preamble.
156     #
157     # 'preamble': '',
158     # Latex figure (float) alignment
159     #
160     # 'figure_align': 'htbp',
161 }
162 
163 # Grouping the document tree into LaTeX files. List of tuples
164 # (source start file, target name, title,
165 #  author, documentclass [howto, manual, or own class]).
166 latex_documents = [
167     # Disabled pdf builds to unblock readthedocs failed builds;
168     # see https://github.com/pyro-ppl/pyro/issues/3248
169     # (master_doc, "Pyro.tex", u"Pyro Documentation", u"Uber AI Labs", "manual"),
170 ]
171 
172 # -- Options for manual page output ---------------------------------------
173 
174 # One entry per manual page. List of tuples
175 # (source start file, name, description, authors, manual section).
176 man_pages = [(master_doc, "pyro", u"Pyro Documentation", [author], 1)]
177 
178 # -- Options for Texinfo output -------------------------------------------
179 
180 # Grouping the document tree into Texinfo files. List of tuples
181 # (source start file, target name, title, author,
182 #  dir menu entry, description, category)
183 texinfo_documents = [
184     (
185         master_doc,
186         "Pyro",
187         u"Pyro Documentation",
188         author,
189         "Pyro",
190         "Deep Universal Probabilistic Programming.",
191         "Miscellaneous",
192     ),
193 ]
194 
195 # Example configuration for intersphinx: refer to the Python standard library.
196 intersphinx_mapping = {
197     "python": ("https://docs.python.org/3/", None),
198     "torch": ("https://pytorch.org/docs/master/", None),
199     "funsor": ("http://funsor.pyro.ai/en/stable/", None),
200     "opt_einsum": ("https://optimized-einsum.readthedocs.io/en/stable/", None),
201     "scipy": ("https://docs.scipy.org/doc/scipy/reference/", None),
202     "Bio": ("https://biopython.org/docs/latest/api/", None),
203     "horovod": ("https://horovod.readthedocs.io/en/stable/", None),
204     "graphviz": ("https://graphviz.readthedocs.io/en/stable/", None),
205 }
206 
207 # document class constructors (__init__ methods):
208 """ comment out this functionality for now;
209 def skip(app, what, name, obj, skip, options):
210     if name == "__init__":
211         return False
212     return skip
213 """
214 
215 
216 def setup(app):
217     app.add_css_file("css/pyro.css")
218 
219 
220 #     app.connect("autodoc-skip-member", skip)
221 
222 
223 # @jpchen's hack to get rtd builder to install latest pytorch
224 # See similar line in the install section of .travis.yml
225 if "READTHEDOCS" in os.environ:
226     os.system("pip install numpy")
227     os.system(
228         "pip install torch==1.11.0+cpu torchvision==0.12.0+cpu "
229         "-f https://download.pytorch.org/whl/torch_stable.html"
230     )
231
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/docs/source/conf.py b/docs/source/conf.py
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -164,9 +164,7 @@
 # (source start file, target name, title,
 #  author, documentclass [howto, manual, or own class]).
 latex_documents = [
-    # Disabled pdf builds to unblock readthedocs failed builds;
-    # see https://github.com/pyro-ppl/pyro/issues/3248
-    # (master_doc, "Pyro.tex", u"Pyro Documentation", u"Uber AI Labs", "manual"),
+    (master_doc, "Pyro.tex", u"Pyro Documentation", u"Uber AI Labs", "manual"),
 ]
 
 # -- Options for manual page output ---------------------------------------

{"golden_diff": "diff --git a/docs/source/conf.py b/docs/source/conf.py\n--- a/docs/source/conf.py\n+++ b/docs/source/conf.py\n@@ -164,9 +164,7 @@\n # (source start file, target name, title,\n #  author, documentclass [howto, manual, or own class]).\n latex_documents = [\n-    # Disabled pdf builds to unblock readthedocs failed builds;\n-    # see https://github.com/pyro-ppl/pyro/issues/3248\n-    # (master_doc, \"Pyro.tex\", u\"Pyro Documentation\", u\"Uber AI Labs\", \"manual\"),\n+    (master_doc, \"Pyro.tex\", u\"Pyro Documentation\", u\"Uber AI Labs\", \"manual\"),\n ]\n \n # -- Options for manual page output ---------------------------------------\n", "issue": "Docs builds are failing\nDocs builds seem to have been failing since 1.8.5 release. We should fix this before the 1.8.6 release.\r\n\r\nhttps://readthedocs.org/projects/pyro-ppl/builds/20847164/\r\n<img width=\"812\" alt=\"image\" src=\"https://github.com/pyro-ppl/pyro/assets/648532/45149fae-a72d-481a-aaf9-73262d50aa92\">\r\n\n", "before_files": [{"content": "# Copyright (c) 2017-2019 Uber Technologies, Inc.\n# SPDX-License-Identifier: Apache-2.0\n\nimport os\nimport sys\n\nimport sphinx_rtd_theme\n\n# import pkg_resources\n\n# -*- coding: utf-8 -*-\n#\n# Pyro documentation build configuration file, created by\n# sphinx-quickstart on Thu Jun 15 17:16:14 2017.\n#\n# This file is execfile()d with the current directory set to its\n# containing dir.\n#\n# Note that not all possible configuration values are present in this\n# autogenerated file.\n#\n# All configuration values have a default; values that are commented out\n# serve to show the default.\n\n# If extensions (or modules to document with autodoc) are in another directory,\n# add these directories to sys.path here. If the directory is relative to the\n# documentation root, use os.path.abspath to make it absolute, like shown here.\n#\nsys.path.insert(0, os.path.abspath(\"../..\"))\n\n# -- General configuration ------------------------------------------------\n\n# If your documentation needs a minimal Sphinx version, state it here.\n#\n# needs_sphinx = '1.0'\n\n# Add any Sphinx extension module names here, as strings. They can be\n# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom\n# ones.\nextensions = [\n    \"sphinx.ext.intersphinx\",  #\n    \"sphinx.ext.todo\",  #\n    \"sphinx.ext.mathjax\",  #\n    \"sphinx.ext.ifconfig\",  #\n    \"sphinx.ext.viewcode\",  #\n    \"sphinx.ext.githubpages\",  #\n    \"sphinx.ext.graphviz\",  #\n    \"sphinx.ext.autodoc\",\n    \"sphinx.ext.doctest\",\n    'sphinx.ext.napoleon',\n]\n\n# Disable documentation inheritance so as to avoid inheriting\n# docstrings in a different format, e.g. when the parent class\n# is a PyTorch class.\n\nautodoc_inherit_docstrings = False\n\n# Add any paths that contain templates here, relative to this directory.\ntemplates_path = [\"_templates\"]\n\n# The suffix(es) of source filenames.\n# You can specify multiple suffix as a list of string:\n#\n# source_suffix = ['.rst', '.md']\nsource_suffix = \".rst\"\n\n# The master toctree document.\nmaster_doc = \"index\"\n\n# General information about the project.\nproject = u\"Pyro\"\ncopyright = u\"2017-2018, Uber Technologies, Inc\"\nauthor = u\"Uber AI Labs\"\n\n# The version info for the project you're documenting, acts as replacement for\n# |version| and |release|, also used in various other places throughout the\n# built documents.\n\nversion = \"\"\n\nif \"READTHEDOCS\" not in os.environ:\n    # if developing locally, use pyro.__version__ as version\n    from pyro import __version__  # noqaE402\n\n    version = __version__\n\n# release version\nrelease = version\n\n# The language for content autogenerated by Sphinx. Refer to documentation\n# for a list of supported languages.\n#\n# This is also used if you do content translation via gettext catalogs.\n# Usually you set \"language\" from the command line for these cases.\nlanguage = \"en\"\n\n# List of patterns, relative to source directory, that match files and\n# directories to ignore when looking for source files.\n# This patterns also effect to html_static_path and html_extra_path\nexclude_patterns = []\n\n# The name of the Pygments (syntax highlighting) style to use.\npygments_style = \"sphinx\"\n\n# If true, `todo` and `todoList` produce output, else they produce nothing.\ntodo_include_todos = True\n\n# do not prepend module name to functions\nadd_module_names = False\n\n# -- Options for HTML output ----------------------------------------------\n\n# logo\nhtml_logo = \"_static/img/pyro_logo_wide.png\"\n\n# logo\nhtml_favicon = \"_static/img/favicon/favicon.ico\"\n\n# The theme to use for HTML and HTML Help pages.  See the documentation for\n# a list of builtin themes.\n#\nhtml_theme = \"sphinx_rtd_theme\"\nhtml_theme_path = [sphinx_rtd_theme.get_html_theme_path()]\n\n# Theme options are theme-specific and customize the look and feel of a theme\n# further.  For a list of options available for each theme, see the\n# documentation.\n\nhtml_theme_options = {\n    \"navigation_depth\": 3,\n    \"logo_only\": True,\n}\n\n# Add any paths that contain custom static files (such as style sheets) here,\n# relative to this directory. They are copied after the builtin static files,\n# so a file named \"default.css\" will overwrite the builtin \"default.css\".\nhtml_static_path = [\"_static\"]\nhtml_style = \"css/pyro.css\"\n\n# -- Options for HTMLHelp output ------------------------------------------\n\n# Output file base name for HTML help builder.\nhtmlhelp_basename = \"Pyrodoc\"\n\n# -- Options for LaTeX output ---------------------------------------------\n\nlatex_elements = {\n    # The paper size ('letterpaper' or 'a4paper').\n    #\n    # 'papersize': 'letterpaper',\n    # The font size ('10pt', '11pt' or '12pt').\n    #\n    # 'pointsize': '10pt',\n    # Additional stuff for the LaTeX preamble.\n    #\n    # 'preamble': '',\n    # Latex figure (float) alignment\n    #\n    # 'figure_align': 'htbp',\n}\n\n# Grouping the document tree into LaTeX files. List of tuples\n# (source start file, target name, title,\n#  author, documentclass [howto, manual, or own class]).\nlatex_documents = [\n    # Disabled pdf builds to unblock readthedocs failed builds;\n    # see https://github.com/pyro-ppl/pyro/issues/3248\n    # (master_doc, \"Pyro.tex\", u\"Pyro Documentation\", u\"Uber AI Labs\", \"manual\"),\n]\n\n# -- Options for manual page output ---------------------------------------\n\n# One entry per manual page. List of tuples\n# (source start file, name, description, authors, manual section).\nman_pages = [(master_doc, \"pyro\", u\"Pyro Documentation\", [author], 1)]\n\n# -- Options for Texinfo output -------------------------------------------\n\n# Grouping the document tree into Texinfo files. List of tuples\n# (source start file, target name, title, author,\n#  dir menu entry, description, category)\ntexinfo_documents = [\n    (\n        master_doc,\n        \"Pyro\",\n        u\"Pyro Documentation\",\n        author,\n        \"Pyro\",\n        \"Deep Universal Probabilistic Programming.\",\n        \"Miscellaneous\",\n    ),\n]\n\n# Example configuration for intersphinx: refer to the Python standard library.\nintersphinx_mapping = {\n    \"python\": (\"https://docs.python.org/3/\", None),\n    \"torch\": (\"https://pytorch.org/docs/master/\", None),\n    \"funsor\": (\"http://funsor.pyro.ai/en/stable/\", None),\n    \"opt_einsum\": (\"https://optimized-einsum.readthedocs.io/en/stable/\", None),\n    \"scipy\": (\"https://docs.scipy.org/doc/scipy/reference/\", None),\n    \"Bio\": (\"https://biopython.org/docs/latest/api/\", None),\n    \"horovod\": (\"https://horovod.readthedocs.io/en/stable/\", None),\n    \"graphviz\": (\"https://graphviz.readthedocs.io/en/stable/\", None),\n}\n\n# document class constructors (__init__ methods):\n\"\"\" comment out this functionality for now;\ndef skip(app, what, name, obj, skip, options):\n    if name == \"__init__\":\n        return False\n    return skip\n\"\"\"\n\n\ndef setup(app):\n    app.add_css_file(\"css/pyro.css\")\n\n\n#     app.connect(\"autodoc-skip-member\", skip)\n\n\n# @jpchen's hack to get rtd builder to install latest pytorch\n# See similar line in the install section of .travis.yml\nif \"READTHEDOCS\" in os.environ:\n    os.system(\"pip install numpy\")\n    os.system(\n        \"pip install torch==1.11.0+cpu torchvision==0.12.0+cpu \"\n        \"-f https://download.pytorch.org/whl/torch_stable.html\"\n    )\n", "path": "docs/source/conf.py"}], "after_files": [{"content": "# Copyright (c) 2017-2019 Uber Technologies, Inc.\n# SPDX-License-Identifier: Apache-2.0\n\nimport os\nimport sys\n\nimport sphinx_rtd_theme\n\n# import pkg_resources\n\n# -*- coding: utf-8 -*-\n#\n# Pyro documentation build configuration file, created by\n# sphinx-quickstart on Thu Jun 15 17:16:14 2017.\n#\n# This file is execfile()d with the current directory set to its\n# containing dir.\n#\n# Note that not all possible configuration values are present in this\n# autogenerated file.\n#\n# All configuration values have a default; values that are commented out\n# serve to show the default.\n\n# If extensions (or modules to document with autodoc) are in another directory,\n# add these directories to sys.path here. If the directory is relative to the\n# documentation root, use os.path.abspath to make it absolute, like shown here.\n#\nsys.path.insert(0, os.path.abspath(\"../..\"))\n\n# -- General configuration ------------------------------------------------\n\n# If your documentation needs a minimal Sphinx version, state it here.\n#\n# needs_sphinx = '1.0'\n\n# Add any Sphinx extension module names here, as strings. They can be\n# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom\n# ones.\nextensions = [\n    \"sphinx.ext.intersphinx\",  #\n    \"sphinx.ext.todo\",  #\n    \"sphinx.ext.mathjax\",  #\n    \"sphinx.ext.ifconfig\",  #\n    \"sphinx.ext.viewcode\",  #\n    \"sphinx.ext.githubpages\",  #\n    \"sphinx.ext.graphviz\",  #\n    \"sphinx.ext.autodoc\",\n    \"sphinx.ext.doctest\",\n    'sphinx.ext.napoleon',\n]\n\n# Disable documentation inheritance so as to avoid inheriting\n# docstrings in a different format, e.g. when the parent class\n# is a PyTorch class.\n\nautodoc_inherit_docstrings = False\n\n# Add any paths that contain templates here, relative to this directory.\ntemplates_path = [\"_templates\"]\n\n# The suffix(es) of source filenames.\n# You can specify multiple suffix as a list of string:\n#\n# source_suffix = ['.rst', '.md']\nsource_suffix = \".rst\"\n\n# The master toctree document.\nmaster_doc = \"index\"\n\n# General information about the project.\nproject = u\"Pyro\"\ncopyright = u\"2017-2018, Uber Technologies, Inc\"\nauthor = u\"Uber AI Labs\"\n\n# The version info for the project you're documenting, acts as replacement for\n# |version| and |release|, also used in various other places throughout the\n# built documents.\n\nversion = \"\"\n\nif \"READTHEDOCS\" not in os.environ:\n    # if developing locally, use pyro.__version__ as version\n    from pyro import __version__  # noqaE402\n\n    version = __version__\n\n# release version\nrelease = version\n\n# The language for content autogenerated by Sphinx. Refer to documentation\n# for a list of supported languages.\n#\n# This is also used if you do content translation via gettext catalogs.\n# Usually you set \"language\" from the command line for these cases.\nlanguage = \"en\"\n\n# List of patterns, relative to source directory, that match files and\n# directories to ignore when looking for source files.\n# This patterns also effect to html_static_path and html_extra_path\nexclude_patterns = []\n\n# The name of the Pygments (syntax highlighting) style to use.\npygments_style = \"sphinx\"\n\n# If true, `todo` and `todoList` produce output, else they produce nothing.\ntodo_include_todos = True\n\n# do not prepend module name to functions\nadd_module_names = False\n\n# -- Options for HTML output ----------------------------------------------\n\n# logo\nhtml_logo = \"_static/img/pyro_logo_wide.png\"\n\n# logo\nhtml_favicon = \"_static/img/favicon/favicon.ico\"\n\n# The theme to use for HTML and HTML Help pages.  See the documentation for\n# a list of builtin themes.\n#\nhtml_theme = \"sphinx_rtd_theme\"\nhtml_theme_path = [sphinx_rtd_theme.get_html_theme_path()]\n\n# Theme options are theme-specific and customize the look and feel of a theme\n# further.  For a list of options available for each theme, see the\n# documentation.\n\nhtml_theme_options = {\n    \"navigation_depth\": 3,\n    \"logo_only\": True,\n}\n\n# Add any paths that contain custom static files (such as style sheets) here,\n# relative to this directory. They are copied after the builtin static files,\n# so a file named \"default.css\" will overwrite the builtin \"default.css\".\nhtml_static_path = [\"_static\"]\nhtml_style = \"css/pyro.css\"\n\n# -- Options for HTMLHelp output ------------------------------------------\n\n# Output file base name for HTML help builder.\nhtmlhelp_basename = \"Pyrodoc\"\n\n# -- Options for LaTeX output ---------------------------------------------\n\nlatex_elements = {\n    # The paper size ('letterpaper' or 'a4paper').\n    #\n    # 'papersize': 'letterpaper',\n    # The font size ('10pt', '11pt' or '12pt').\n    #\n    # 'pointsize': '10pt',\n    # Additional stuff for the LaTeX preamble.\n    #\n    # 'preamble': '',\n    # Latex figure (float) alignment\n    #\n    # 'figure_align': 'htbp',\n}\n\n# Grouping the document tree into LaTeX files. List of tuples\n# (source start file, target name, title,\n#  author, documentclass [howto, manual, or own class]).\nlatex_documents = [\n    (master_doc, \"Pyro.tex\", u\"Pyro Documentation\", u\"Uber AI Labs\", \"manual\"),\n]\n\n# -- Options for manual page output ---------------------------------------\n\n# One entry per manual page. List of tuples\n# (source start file, name, description, authors, manual section).\nman_pages = [(master_doc, \"pyro\", u\"Pyro Documentation\", [author], 1)]\n\n# -- Options for Texinfo output -------------------------------------------\n\n# Grouping the document tree into Texinfo files. List of tuples\n# (source start file, target name, title, author,\n#  dir menu entry, description, category)\ntexinfo_documents = [\n    (\n        master_doc,\n        \"Pyro\",\n        u\"Pyro Documentation\",\n        author,\n        \"Pyro\",\n        \"Deep Universal Probabilistic Programming.\",\n        \"Miscellaneous\",\n    ),\n]\n\n# Example configuration for intersphinx: refer to the Python standard library.\nintersphinx_mapping = {\n    \"python\": (\"https://docs.python.org/3/\", None),\n    \"torch\": (\"https://pytorch.org/docs/master/\", None),\n    \"funsor\": (\"http://funsor.pyro.ai/en/stable/\", None),\n    \"opt_einsum\": (\"https://optimized-einsum.readthedocs.io/en/stable/\", None),\n    \"scipy\": (\"https://docs.scipy.org/doc/scipy/reference/\", None),\n    \"Bio\": (\"https://biopython.org/docs/latest/api/\", None),\n    \"horovod\": (\"https://horovod.readthedocs.io/en/stable/\", None),\n    \"graphviz\": (\"https://graphviz.readthedocs.io/en/stable/\", None),\n}\n\n# document class constructors (__init__ methods):\n\"\"\" comment out this functionality for now;\ndef skip(app, what, name, obj, skip, options):\n    if name == \"__init__\":\n        return False\n    return skip\n\"\"\"\n\n\ndef setup(app):\n    app.add_css_file(\"css/pyro.css\")\n\n\n#     app.connect(\"autodoc-skip-member\", skip)\n\n\n# @jpchen's hack to get rtd builder to install latest pytorch\n# See similar line in the install section of .travis.yml\nif \"READTHEDOCS\" in os.environ:\n    os.system(\"pip install numpy\")\n    os.system(\n        \"pip install torch==1.11.0+cpu torchvision==0.12.0+cpu \"\n        \"-f https://download.pytorch.org/whl/torch_stable.html\"\n    )\n", "path": "docs/source/conf.py"}]}