Open
Description
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.