You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[...]/pyhf/src/pyhf/tensor/pytorch_backend.py:201: DeprecationWarning: In future, it will be an error for 'np.bool_' scalars to be interpreted as an index return torch.as_tensor(tensor_in, dtype=dtype)[...]/pyhf/src/pyhf/tensor/pytorch_backend.py:201: UserWarning: Creating a tensor from a list of numpy.ndarrays is extremely slow. Please consider converting the list to a single numpy.ndarray with numpy.array() before converting to a tensor. (Triggered internally at /Users/runner/work/pytorch/pytorch/pytorch/torch/csrc/utils/tensor_new.cpp:204.) return torch.as_tensor(tensor_in, dtype=dtype)
pyhf Version
pyhf, version 0.7.0rc2.dev18
Code of Conduct
I agree to follow the Code of Conduct
The text was updated successfully, but these errors were encountered:
[...]/pyhf/src/pyhf/tensor/pytorch_backend.py:201: DeprecationWarning: In future, it will be an error for 'np.bool_' scalars to be interpreted as an index
return torch.as_tensor(tensor_in, dtype=dtype)
I need to look if we have an Issue for this. If not, then I should probably make one and update the PyTorch API and also figure out what a new lower bound on torch should be.
[...]/pyhf/src/pyhf/tensor/pytorch_backend.py:201: UserWarning: Creating a tensor from a list of numpy.ndarrays is extremely slow. Please consider converting the list to a single numpy.ndarray with numpy.array() before converting to a tensor. (Triggered internally at /Users/runner/work/pytorch/pytorch/pytorch/torch/csrc/utils/tensor_new.cpp:204.)
return torch.as_tensor(tensor_in, dtype=dtype)
'ignore:Creating a tensor from a list of numpy.ndarrays is extremely slow. Please consider converting the list to a single numpy.ndarray with:UserWarning', #FIXME: tests/test_optim.py::test_minimize[no_grad-scipy-pytorch-no_stitch]
in PR #1773. This should get fixed at some point if possible, but isn't a huge pain point.
Summary
I ran into two warnings with the
pytorch
backend, see below. I have not tried to look at where exactly they come from so far.OS / Environment
n/a
Steps to Reproduce
Run the following with
python -Wd
:File Upload (optional)
No response
Expected Results
no warnings
Actual Results
pyhf Version
pyhf, version 0.7.0rc2.dev18
Code of Conduct
The text was updated successfully, but these errors were encountered: