Skip to content

💡 [REQUEST] - Redundant .to() call in generate_data() #3782

@lounishamroun

Description

@lounishamroun

🚀 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions