How can I set `device` globally instead of specify this every time when I create tensors?

This previous post might be relevant: How to create a tensor on GPU as default - PyTorch Forums

1 Like