Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FutureWarning] Addressing the warning related to use of a deprecated…
… function. (#9674) This PR resolves a FutureWarning that appears in several tests: ``` test/nn/models/test_g_retriever.py::test_g_retriever test/nn/models/test_g_retriever.py::test_g_retriever_many_tokens test/nn/nlp/test_llm.py::test_llm /usr/local/lib/python3.10/dist-packages/torch_geometric/nn/nlp/llm.py:97: FutureWarning: `torch.cuda.amp.autocast(args...)` is deprecated. Please use `torch.amp.autocast('cuda', args...)` instead. self.autocast_context = torch.cuda.amp.autocast(dtype=dtype) ```
- Loading branch information