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