Learn R Programming

whisper (version 0.1.0)

whisper_dtype: Get Default Dtype

Description

Returns float16 on CUDA, float32 on CPU.

Usage

whisper_dtype(device = whisper_device())

Value

torch dtype

Arguments

device

torch device

Examples

Run this code
# \donttest{
if (torch::torch_is_installed()) {
  dtype <- whisper_dtype()
  dtype
}
# }

Run the code above in your browser using DataLab