50% off: Unlimited data and AI learning.
The Learning Leader's Guide to AI Literacy

torch (version 0.14.2)

cuda_current_device: Returns the index of a currently selected device.

Description

Returns the index of a currently selected device.

Usage

cuda_current_device()

Arguments