Skip to content

Commit

Permalink
Rename PyTorch to Torch
Browse files Browse the repository at this point in the history
At some point PyTorch was renamed Torch in the pip repos, this changes
how the package is pulled mostly for RTD, since most users will be
pulling the package through Anaconda where the package is still named
PyTorch
  • Loading branch information
markjonestx committed Jul 13, 2022
1 parent 5944081 commit c04a43c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ python:
- method: pip
path: .
extra_requirements:
- pytorch
- torch
- emcee
1 change: 1 addition & 0 deletions PyPWA/libs/fit/likelihoods.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
TORCH_AVAIL = True
except ImportError:
torch = npy
torch.Tensor = npy.ndarray
TORCH_AVAIL = False

from PyPWA import info as _info
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

extras = {
"emcee": ["emcee"], # Provides MCMC fitting
"pytorch": ["pytorch"] # Provides PyTorch support
"torch": ["torch"] # Provides PyTorch support
}

tests = [
Expand Down

0 comments on commit c04a43c

Please sign in to comment.