Use new APIs added in PyTorch v1.8.0 #1349
Labels
good first issue
Good for newcomers
refactor
A code change that neither fixes a bug nor adds a feature
Projects
Description
In PyTorch
v1.8.0
in the Python API section under "New features" there is the addition oftorch.ravel
(pytorch/pytorch#46098) andtorch.tile
(pytorch/pytorch#47974) to the public API. These should be adopted for thetorch
backend.Currently we use
pyhf/src/pyhf/tensor/pytorch_backend.py
Lines 194 to 212 in 2c10be3
and
pyhf/src/pyhf/tensor/pytorch_backend.py
Lines 126 to 146 in 2c10be3
The text was updated successfully, but these errors were encountered: