File size: 128 Bytes
c977a3e | 1 2 3 4 | import torch
def torch_autocast(device_type="cuda", **kwargs):
return torch.amp.autocast(device_type=device_type, **kwargs)
|
c977a3e | 1 2 3 4 | import torch
def torch_autocast(device_type="cuda", **kwargs):
return torch.amp.autocast(device_type=device_type, **kwargs)
|