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
[DeprecationWarning] Addressing warning related to Tensor.pin_memory() argument (pyg-team#9617)
This PR resolves the following sets of warnings:
```
test/loader/test_prefetch.py: 10 warnings
/usr/local/lib/python3.10/dist-packages/torch_geometric/loader/prefetch.py:76: DeprecationWarning:
The argument 'device' of Tensor.pin_memory() is deprecated. Please do not pass this argument.
(Triggered internally at /opt/pytorch/pytorch/aten/src/ATen/native/Memory.cpp:46.)
batch = batch.pin_memory(self.device_helper.device)
test/loader/test_prefetch.py: 10 warnings
/usr/local/lib/python3.10/dist-packages/torch_geometric/loader/prefetch.py:76: DeprecationWarning:
The argument 'device' of Tensor.is_pinned() is deprecated. Please do not pass this argument.
(Triggered internally at /opt/pytorch/pytorch/aten/src/ATen/native/Memory.cpp:31.)
batch = batch.pin_memory(self.device_helper.device)
```
0 commit comments