Skip to content

depricated torch.set_default_tensor_type() #196

Open
@mahmoud-atwi

Description

@mahmoud-atwi

Issue

Problem Description

torch.set_default_tensor_type() as of PyTorch 2.1

Expected Behavior

What Needs to be Done

use torch.set_default_dtype() and torch.set_default_device() as alternatives

How Can It Be Tested or Reproduced

use set_up_backend("torch") with PyTorch >= 2.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions