Skip to content

Torch: Investigate if set_default_device/with_device is a deal-breaker #820

Open
@ricardoV94

Description

@ricardoV94

Description

The easiest way to give PyTensor users global (not fine-grained) control over CPU/GPU for the PyTorch backend would be the set_default_device/with_device. However, this may bee too slow, according to: pytorch/pytorch#92701

We should benchmark to see if it is a problem. If yes, we may want to use a PyTensor config flag to get the same control without the PyTorch overhead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs infoAdditional information requiredtorchPyTorch backend

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions