powered by
Utilities for managing torch devices and data types. Get Default Device Returns CUDA device if available, otherwise CPU.
whisper_device()
torch device object
# \donttest{ if (torch::torch_is_installed()) { device <- whisper_device() device$type } # }
Run the code above in your browser using DataLab