Learn R Programming

whisper (version 0.1.0)

whisper_device: Device and Dtype Management

Description

Utilities for managing torch devices and data types. Get Default Device Returns CUDA device if available, otherwise CPU.

Usage

whisper_device()

Arguments

Value

torch device object

Examples

Run this code
# \donttest{
if (torch::torch_is_installed()) {
  device <- whisper_device()
  device$type
}
# }

Run the code above in your browser using DataLab