Silence CUDA graph tree cuda warning (#103636)
Fixes
```
/data/home/marksaroufim/miniconda/envs/saf/lib/python3.8/site-packages/torch/_inductor/cudagraph_trees.py:85: UserWarning: 'has_cuda' is deprecated, please use 'torch.backends.cuda.is_built()'
if torch.has_cuda:
Traceback (most recent call last):
```
Pull Request resolved: https://github.com/pytorch/pytorch/pull/103636
Approved by: https://github.com/eellison