Reza2kn's picture
Shenava Rizeh v1.5 (fine-tuned tinyasr en-fa)
a8248a0 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)