cuda_current_device: Returns the index of a currently selected device.

View source: R/cuda.R

cuda_current_deviceR Documentation

Returns the index of a currently selected device.

Description

Returns the index of a currently selected device.

Usage

cuda_current_device()

torch documentation built on Nov. 5, 2025, 7:02 p.m.