We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Upgrade to PyTorch 1.8
This documents our upgrade plan to PyTorch 1.8, which breaks `pyro.distributions` as in Pyro 1.5.1 release. PyTorch 1.8.0 release is scheduled for sometime in March 2021.

## Plan

- [x] #2755 Release Pyro 1.5.2 which constrains to `torch<=1.7.2`.
- [x] #2757 Upgrade dev branch to PyTorch 1.7.0, fixing tests.
- [x] #2753 Pin Pyro dev branch to PyTorch nightly build, and fix many breaking changes.
- [x] #2739 Implement `Distribution.infer_shapes()`.
- ...
- [ ] After PyTorch 1.8 release, pin Pyro dev back to PyTorch release and release Pyro 1.6.

cc @neerajprad 

--- 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 ]
51 
52 # Disable documentation inheritance so as to avoid inheriting
53 # docstrings in a different format, e.g. when the parent class
54 # is a PyTorch class.
55 
56 autodoc_inherit_docstrings = False
57 
58 # Add any paths that contain templates here, relative to this directory.
59 templates_path = ['_templates']
60 
61 # The suffix(es) of source filenames.
62 # You can specify multiple suffix as a list of string:
63 #
64 # source_suffix = ['.rst', '.md']
65 source_suffix = '.rst'
66 
67 # The master toctree document.
68 master_doc = 'index'
69 
70 # General information about the project.
71 project = u'Pyro'
72 copyright = u'2017-2018, Uber Technologies, Inc'
73 author = u'Uber AI Labs'
74 
75 # The version info for the project you're documenting, acts as replacement for
76 # |version| and |release|, also used in various other places throughout the
77 # built documents.
78 
79 version = ''
80 
81 if 'READTHEDOCS' not in os.environ:
82     # if developing locally, use pyro.__version__ as version
83     from pyro import __version__  # noqaE402
84     version = __version__
85 
86 # release version
87 release = version
88 
89 # The language for content autogenerated by Sphinx. Refer to documentation
90 # for a list of supported languages.
91 #
92 # This is also used if you do content translation via gettext catalogs.
93 # Usually you set "language" from the command line for these cases.
94 language = None
95 
96 # List of patterns, relative to source directory, that match files and
97 # directories to ignore when looking for source files.
98 # This patterns also effect to html_static_path and html_extra_path
99 exclude_patterns = []
100 
101 # The name of the Pygments (syntax highlighting) style to use.
102 pygments_style = 'sphinx'
103 
104 # If true, `todo` and `todoList` produce output, else they produce nothing.
105 todo_include_todos = True
106 
107 # do not prepend module name to functions
108 add_module_names = False
109 
110 # -- Options for HTML output ----------------------------------------------
111 
112 # logo
113 html_logo = '_static/img/pyro_logo_wide.png'
114 
115 # logo
116 html_favicon = '_static/img/favicon/favicon.ico'
117 
118 # The theme to use for HTML and HTML Help pages.  See the documentation for
119 # a list of builtin themes.
120 #
121 html_theme = "sphinx_rtd_theme"
122 html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
123 
124 # Theme options are theme-specific and customize the look and feel of a theme
125 # further.  For a list of options available for each theme, see the
126 # documentation.
127 
128 html_theme_options = {
129     'navigation_depth': 3,
130     'logo_only': True,
131 }
132 
133 # Add any paths that contain custom static files (such as style sheets) here,
134 # relative to this directory. They are copied after the builtin static files,
135 # so a file named "default.css" will overwrite the builtin "default.css".
136 html_static_path = ['_static']
137 html_style = 'css/pyro.css'
138 
139 # -- Options for HTMLHelp output ------------------------------------------
140 
141 # Output file base name for HTML help builder.
142 htmlhelp_basename = 'Pyrodoc'
143 
144 # -- Options for LaTeX output ---------------------------------------------
145 
146 latex_elements = {
147     # The paper size ('letterpaper' or 'a4paper').
148     #
149     # 'papersize': 'letterpaper',
150 
151     # The font size ('10pt', '11pt' or '12pt').
152     #
153     # 'pointsize': '10pt',
154 
155     # Additional stuff for the LaTeX preamble.
156     #
157     # 'preamble': '',
158 
159     # Latex figure (float) alignment
160     #
161     # 'figure_align': 'htbp',
162 }
163 
164 # Grouping the document tree into LaTeX files. List of tuples
165 # (source start file, target name, title,
166 #  author, documentclass [howto, manual, or own class]).
167 latex_documents = [
168     (master_doc, 'Pyro.tex', u'Pyro Documentation', u'Uber AI Labs', 'manual'),
169 ]
170 
171 # -- Options for manual page output ---------------------------------------
172 
173 # One entry per manual page. List of tuples
174 # (source start file, name, description, authors, manual section).
175 man_pages = [(master_doc, 'pyro', u'Pyro Documentation', [author], 1)]
176 
177 # -- Options for Texinfo output -------------------------------------------
178 
179 # Grouping the document tree into Texinfo files. List of tuples
180 # (source start file, target name, title, author,
181 #  dir menu entry, description, category)
182 texinfo_documents = [
183     (master_doc, 'Pyro', u'Pyro Documentation', author, 'Pyro',
184      'Deep Universal Probabilistic Programming.', 'Miscellaneous'),
185 ]
186 
187 # Example configuration for intersphinx: refer to the Python standard library.
188 intersphinx_mapping = {
189     'python': ('https://docs.python.org/3/', None),
190     'torch': ('https://pytorch.org/docs/master/', None),
191     'funsor': ('http://funsor.pyro.ai/en/stable/', None),
192     'opt_einsum': ('https://optimized-einsum.readthedocs.io/en/stable/', None),
193     'scipy': ('https://docs.scipy.org/doc/scipy/reference/', None),
194     'Bio': ('https://biopython.readthedocs.io/en/latest/', None),
195     'horovod': ('https://horovod.readthedocs.io/en/stable/', None),
196 }
197 
198 # document class constructors (__init__ methods):
199 """ comment out this functionality for now;
200 def skip(app, what, name, obj, skip, options):
201     if name == "__init__":
202         return False
203     return skip
204 """
205 
206 
207 def setup(app):
208     app.add_stylesheet('css/pyro.css')
209 #     app.connect("autodoc-skip-member", skip)
210 
211 
212 # @jpchen's hack to get rtd builder to install latest pytorch
213 # See similar line in the install section of .travis.yml
214 if 'READTHEDOCS' in os.environ:
215     os.system('pip install numpy')
216     # TODO replace with torch_stable before release
217     # os.system('pip install torch==1.8.0+cpu torchvision==0.9.0+cpu '
218     #           '-f https://download.pytorch.org/whl/torch_stable.html')
219     os.system('pip install torch==1.8.0+cpu torchvision==0.9.0 '
220               '-f https://download.pytorch.org/whl/test/cpu/torch_test.html')
221
```
--- 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
@@ -213,8 +213,5 @@
 # See similar line in the install section of .travis.yml
 if 'READTHEDOCS' in os.environ:
     os.system('pip install numpy')
-    # TODO replace with torch_stable before release
-    # os.system('pip install torch==1.8.0+cpu torchvision==0.9.0+cpu '
-    #           '-f https://download.pytorch.org/whl/torch_stable.html')
-    os.system('pip install torch==1.8.0+cpu torchvision==0.9.0 '
-              '-f https://download.pytorch.org/whl/test/cpu/torch_test.html')
+    os.system('pip install torch==1.8.0+cpu torchvision==0.9.0+cpu '
+              '-f https://download.pytorch.org/whl/torch_stable.html')

{"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@@ -213,8 +213,5 @@\n # See similar line in the install section of .travis.yml\n if 'READTHEDOCS' in os.environ:\n     os.system('pip install numpy')\n-    # TODO replace with torch_stable before release\n-    # os.system('pip install torch==1.8.0+cpu torchvision==0.9.0+cpu '\n-    #           '-f https://download.pytorch.org/whl/torch_stable.html')\n-    os.system('pip install torch==1.8.0+cpu torchvision==0.9.0 '\n-              '-f https://download.pytorch.org/whl/test/cpu/torch_test.html')\n+    os.system('pip install torch==1.8.0+cpu torchvision==0.9.0+cpu '\n+              '-f https://download.pytorch.org/whl/torch_stable.html')\n", "issue": "Upgrade to PyTorch 1.8\nThis documents our upgrade plan to PyTorch 1.8, which breaks `pyro.distributions` as in Pyro 1.5.1 release. PyTorch 1.8.0 release is scheduled for sometime in March 2021.\r\n\r\n## Plan\r\n\r\n- [x] #2755 Release Pyro 1.5.2 which constrains to `torch<=1.7.2`.\r\n- [x] #2757 Upgrade dev branch to PyTorch 1.7.0, fixing tests.\r\n- [x] #2753 Pin Pyro dev branch to PyTorch nightly build, and fix many breaking changes.\r\n- [x] #2739 Implement `Distribution.infer_shapes()`.\r\n- ...\r\n- [ ] After PyTorch 1.8 release, pin Pyro dev back to PyTorch release and release Pyro 1.6.\r\n\r\ncc @neerajprad \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]\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    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 = None\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\n    # The font size ('10pt', '11pt' or '12pt').\n    #\n    # 'pointsize': '10pt',\n\n    # Additional stuff for the LaTeX preamble.\n    #\n    # 'preamble': '',\n\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    (master_doc, 'Pyro', u'Pyro Documentation', author, 'Pyro',\n     'Deep Universal Probabilistic Programming.', 'Miscellaneous'),\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.readthedocs.io/en/latest/', None),\n    'horovod': ('https://horovod.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_stylesheet('css/pyro.css')\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    # TODO replace with torch_stable before release\n    # os.system('pip install torch==1.8.0+cpu torchvision==0.9.0+cpu '\n    #           '-f https://download.pytorch.org/whl/torch_stable.html')\n    os.system('pip install torch==1.8.0+cpu torchvision==0.9.0 '\n              '-f https://download.pytorch.org/whl/test/cpu/torch_test.html')\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]\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    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 = None\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\n    # The font size ('10pt', '11pt' or '12pt').\n    #\n    # 'pointsize': '10pt',\n\n    # Additional stuff for the LaTeX preamble.\n    #\n    # 'preamble': '',\n\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    (master_doc, 'Pyro', u'Pyro Documentation', author, 'Pyro',\n     'Deep Universal Probabilistic Programming.', 'Miscellaneous'),\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.readthedocs.io/en/latest/', None),\n    'horovod': ('https://horovod.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_stylesheet('css/pyro.css')\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('pip install torch==1.8.0+cpu torchvision==0.9.0+cpu '\n              '-f https://download.pytorch.org/whl/torch_stable.html')\n", "path": "docs/source/conf.py"}]}