Closed drivanov closed 2 days ago
This PR provides a fix for the warning
/opt/pyg/pytorch_geometric/test/nn/dense/test_linear.py:177: FutureWarning: `torch.cuda.amp.autocast(args...)` is deprecated. Please use `torch.amp.autocast('cuda', args...)` instead.
that appears in the following tests:
test/nn/dense/test_linear.py::test_hetero_linear_amp[None-cpu] test/nn/dense/test_linear.py::test_hetero_linear_amp[None-cuda:0] test/nn/dense/test_linear.py::test_hetero_linear_amp[True-cpu] test/nn/dense/test_linear.py::test_hetero_linear_amp[True-cuda:0] test/nn/dense/test_linear.py::test_hetero_linear_amp[False-cpu] test/nn/dense/test_linear.py::test_hetero_linear_amp[False-cuda:0]
and several other places.
This PR provides a fix for the warning
that appears in the following tests:
and several other places.