Skip to contents

This function prints the available devices (cpu, cuda, mps) detected by PyTorch. If your mps/cuda device is not shown, check your PyTorch installation.

Usage

check_devices(env_path = NULL)

Arguments

env_path

Path to virtual environment containing PyTorch and ciss-vae. Defaults to NULL.

Value

Vector of strings for available devices.

Examples

# \donttest{
try(
check_devices()
)# }
#> Available Devices:
#>   * cpu  (Main system processor) 
#> 
#> [1] "cpu"