Reza2kn's picture
Shenava Rizeh v1.6
c977a3e verified
Raw History Blame Contribute Delete
128 Bytes
import torch
def torch_autocast(device_type="cuda", **kwargs):
return torch.amp.autocast(device_type=device_type, **kwargs)