Skip to content

[BUG] - Tutorials should use modern syntax/coding style - torch.rand #2338

Closed
@svekars

Description

@svekars

Add Link

Multiple links - see below.

Describe the bug

For example: You should use torch.rand(device='cuda') instead of torch.rand(device=torch.device('cuda'))

Instances of this issue:

Describe your environment

  • PyTorch 2.0

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions