Commit c30e337
feat: Remove support for PyTorch backend (#2611)
* Remove support for PyTorch from the codebase.
- This is a breaking change.
- Remove the PyTorch backend and optimize/opt_pytorch.py.
* Remove use of PyTorch from the tests.
- Remove PyTorch lower bounds from tests/constraints.txt.
- Remove comparison of tensor library backends in
tests/test_backend_consistency.py as there is only NumPy and JAX now.
* Remove all docs and examples that mention or use PyTorch.
* Remove mentions of PyTorch in all parts of the website and REAMDE except
for historical purposes like the release notes, JOSS paper, and notes
about early pyhf research in FAQs.
- For abstract use term "automatic differentiation".
* Update NumPy backend docstrings to accommodate NumPy v2.0 returns.
Co-authored-by: Giordon Stark <[email protected]>1 parent 7eda55b commit c30e337
File tree
32 files changed
+41
-1356
lines changed- docker/gpu
- docs
- examples/notebooks
- src/pyhf
- cli
- infer
- optimize
- tensor
- tests
32 files changed
+41
-1356
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | 31 | | |
33 | 32 | | |
34 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | 29 | | |
31 | 30 | | |
32 | 31 | | |
| |||
37 | 36 | | |
38 | 37 | | |
39 | 38 | | |
40 | | - | |
41 | | - | |
| 39 | + | |
| 40 | + | |
42 | 41 | | |
43 | 42 | | |
44 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
33 | | - | |
| 31 | + | |
| 32 | + | |
34 | 33 | | |
35 | 34 | | |
36 | 35 | | |
| |||
144 | 143 | | |
145 | 144 | | |
146 | 145 | | |
147 | | - | |
148 | 146 | | |
149 | 147 | | |
150 | 148 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
| 21 | + | |
25 | 22 | | |
26 | 23 | | |
27 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
69 | 68 | | |
70 | 69 | | |
71 | 70 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
150 | 149 | | |
151 | 150 | | |
152 | 151 | | |
| |||
195 | 194 | | |
196 | 195 | | |
197 | 196 | | |
198 | | - | |
199 | 197 | | |
200 | 198 | | |
201 | 199 | | |
202 | 200 | | |
203 | 201 | | |
204 | | - | |
205 | 202 | | |
206 | 203 | | |
207 | 204 | | |
| |||
This file was deleted.
0 commit comments