torchquad
torchquad copied to clipboard
depricated torch.set_default_tensor_type()
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