We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Updated setup.py for pytorch > 0.4 dependency
# Description

I had 0.3.1 for Torch and that caused issues with some of the doctesting as the distributions did not have `cdf` methods. I forced an upgrade pytorch and things are fine now.

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `setup.py`
Content:
```
1 from setuptools import setup, find_packages
2 setup(
3   name = 'pyhf',
4   version = '0.0.8',
5   description = '(partial) pure python histfactory implementation',
6   url = '',
7   author = 'Lukas Heinrich',
8   author_email = 'lukas.heinrich@cern.ch',
9   packages = find_packages(),
10   include_package_data = True,
11   install_requires = [
12     'numpy>=1.14.3',
13     'scipy'
14   ],
15   extras_require = {
16     'xmlimport': [
17        'uproot',
18      ],
19     'torch': [
20       'torch'
21     ],
22     'mxnet':[
23       'mxnet',
24     ],
25     'develop': [
26        'pyflakes',
27        'pytest>=3.5.1',
28        'pytest-cov>=2.5.1',
29        'pytest-benchmark[histogram]',
30        'python-coveralls',
31        'matplotlib',
32        'jupyter',
33        'uproot',
34        'papermill',
35        'torch',
36        'tensorflow',
37        'mxnet>=1.0.0',
38        'graphviz',
39        'sphinx',
40        'sphinxcontrib-bibtex',
41        'sphinxcontrib-napoleon',
42        'sphinx_rtd_theme',
43        'nbsphinx',
44        'jsonpatch',
45        'jsonschema>=2.6.0'
46     ]
47   },
48   entry_points = {
49   },
50   dependency_links = [
51   ]
52 )
53
```
--- 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/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -9,7 +9,7 @@
   packages = find_packages(),
   include_package_data = True,
   install_requires = [
-    'numpy>=1.14.3',
+    'numpy<=1.14.5,>=1.14.3',  # required by tensorflow, mxnet, and us
     'scipy'
   ],
   extras_require = {
@@ -17,10 +17,18 @@
        'uproot',
      ],
     'torch': [
-      'torch'
+      'torch>=0.4.0'
     ],
     'mxnet':[
-      'mxnet',
+      'mxnet>=1.0.0',
+      'requests<2.19.0,>=2.18.4',
+      'numpy<1.15.0,>=1.8.2',
+      'requests<2.19.0,>=2.18.4',
+    ],
+    'tensorflow':[
+       'tensorflow==1.10.0',
+       'numpy<=1.14.5,>=1.13.3',
+       'setuptools<=39.1.0',
     ],
     'develop': [
        'pyflakes',
@@ -28,13 +36,11 @@
        'pytest-cov>=2.5.1',
        'pytest-benchmark[histogram]',
        'python-coveralls',
+       'coverage==4.0.3',  # coveralls
        'matplotlib',
        'jupyter',
        'uproot',
        'papermill',
-       'torch',
-       'tensorflow',
-       'mxnet>=1.0.0',
        'graphviz',
        'sphinx',
        'sphinxcontrib-bibtex',

{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -9,7 +9,7 @@\n   packages = find_packages(),\n   include_package_data = True,\n   install_requires = [\n-    'numpy>=1.14.3',\n+    'numpy<=1.14.5,>=1.14.3',  # required by tensorflow, mxnet, and us\n     'scipy'\n   ],\n   extras_require = {\n@@ -17,10 +17,18 @@\n        'uproot',\n      ],\n     'torch': [\n-      'torch'\n+      'torch>=0.4.0'\n     ],\n     'mxnet':[\n-      'mxnet',\n+      'mxnet>=1.0.0',\n+      'requests<2.19.0,>=2.18.4',\n+      'numpy<1.15.0,>=1.8.2',\n+      'requests<2.19.0,>=2.18.4',\n+    ],\n+    'tensorflow':[\n+       'tensorflow==1.10.0',\n+       'numpy<=1.14.5,>=1.13.3',\n+       'setuptools<=39.1.0',\n     ],\n     'develop': [\n        'pyflakes',\n@@ -28,13 +36,11 @@\n        'pytest-cov>=2.5.1',\n        'pytest-benchmark[histogram]',\n        'python-coveralls',\n+       'coverage==4.0.3',  # coveralls\n        'matplotlib',\n        'jupyter',\n        'uproot',\n        'papermill',\n-       'torch',\n-       'tensorflow',\n-       'mxnet>=1.0.0',\n        'graphviz',\n        'sphinx',\n        'sphinxcontrib-bibtex',\n", "issue": "Updated setup.py for pytorch > 0.4 dependency\n# Description\r\n\r\nI had 0.3.1 for Torch and that caused issues with some of the doctesting as the distributions did not have `cdf` methods. I forced an upgrade pytorch and things are fine now.\n", "before_files": [{"content": "from setuptools import setup, find_packages\nsetup(\n  name = 'pyhf',\n  version = '0.0.8',\n  description = '(partial) pure python histfactory implementation',\n  url = '',\n  author = 'Lukas Heinrich',\n  author_email = 'lukas.heinrich@cern.ch',\n  packages = find_packages(),\n  include_package_data = True,\n  install_requires = [\n    'numpy>=1.14.3',\n    'scipy'\n  ],\n  extras_require = {\n    'xmlimport': [\n       'uproot',\n     ],\n    'torch': [\n      'torch'\n    ],\n    'mxnet':[\n      'mxnet',\n    ],\n    'develop': [\n       'pyflakes',\n       'pytest>=3.5.1',\n       'pytest-cov>=2.5.1',\n       'pytest-benchmark[histogram]',\n       'python-coveralls',\n       'matplotlib',\n       'jupyter',\n       'uproot',\n       'papermill',\n       'torch',\n       'tensorflow',\n       'mxnet>=1.0.0',\n       'graphviz',\n       'sphinx',\n       'sphinxcontrib-bibtex',\n       'sphinxcontrib-napoleon',\n       'sphinx_rtd_theme',\n       'nbsphinx',\n       'jsonpatch',\n       'jsonschema>=2.6.0'\n    ]\n  },\n  entry_points = {\n  },\n  dependency_links = [\n  ]\n)\n", "path": "setup.py"}], "after_files": [{"content": "from setuptools import setup, find_packages\nsetup(\n  name = 'pyhf',\n  version = '0.0.8',\n  description = '(partial) pure python histfactory implementation',\n  url = '',\n  author = 'Lukas Heinrich',\n  author_email = 'lukas.heinrich@cern.ch',\n  packages = find_packages(),\n  include_package_data = True,\n  install_requires = [\n    'numpy<=1.14.5,>=1.14.3',  # required by tensorflow, mxnet, and us\n    'scipy'\n  ],\n  extras_require = {\n    'xmlimport': [\n       'uproot',\n     ],\n    'torch': [\n      'torch>=0.4.0'\n    ],\n    'mxnet':[\n      'mxnet>=1.0.0',\n      'requests<2.19.0,>=2.18.4',\n      'numpy<1.15.0,>=1.8.2',\n      'requests<2.19.0,>=2.18.4',\n    ],\n    'tensorflow':[\n       'tensorflow==1.10.0',\n       'numpy<=1.14.5,>=1.13.3',\n       'setuptools<=39.1.0',\n    ],\n    'develop': [\n       'pyflakes',\n       'pytest>=3.5.1',\n       'pytest-cov>=2.5.1',\n       'pytest-benchmark[histogram]',\n       'python-coveralls',\n       'coverage==4.0.3',  # coveralls\n       'matplotlib',\n       'jupyter',\n       'uproot',\n       'papermill',\n       'graphviz',\n       'sphinx',\n       'sphinxcontrib-bibtex',\n       'sphinxcontrib-napoleon',\n       'sphinx_rtd_theme',\n       'nbsphinx',\n       'jsonpatch',\n       'jsonschema>=2.6.0'\n    ]\n  },\n  entry_points = {\n  },\n  dependency_links = [\n  ]\n)\n", "path": "setup.py"}]}