torch-node.getGPUBackendInfo
function getGPUBackendInfo(): { backend: GPUBackend; version?: string }Get information about the current GPU backend configuration.
Returns metadata about the selected GPU backend without loading it. Useful for debugging or checking configuration before GPU initialization.
Returns
{ backend: GPUBackend; version?: string }– An object containing the backend type and optional version informationExamples
const info = getGPUBackendInfo();
console.log(`Selected backend: ${info.backend}`);