🚀 Describe the improvement or the new tutorial
In the following torch.compile tutorial : https://github.com/pytorch/tutorials/blob/main/intermediate_source/torch_compile_full_example.py
There is a redundant .to() call before .cuda() in the generate_data function.
Existing tutorials on this topic
Affected file => https://github.com/pytorch/tutorials/blob/main/intermediate_source/torch_compile_full_example.py
Additional context
No response