Skip to main content
torch.js has not been released yet.
torch.js logotorch.js logotorch.js
PlaygroundContact
Login
Documentation
IntroductionType SafetyTensor ExpressionsTensor IndexingEinsumEinopsAutogradTraining a ModelProfiling & MemoryPyTorch MigrationBest PracticesRuntimesPerformancePyTorch CompatibilityBenchmarksDType Coverage
IntroductionQuickstartClient APIWorker APIFile I/OBackends
getGPUBackendloadGPUProvidergetGPUBackendInfoGPUBackendsaveloadload_safetensorsSerializationFormatSaveOptionsLoadOptions
torch.js· 2026
LegalTerms of UsePrivacy Policy
/
/
  1. docs
  2. torch-node
  3. torch-node
  4. getGPUBackendInfo

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 information

Examples

const info = getGPUBackendInfo();
console.log(`Selected backend: ${info.backend}`);

See Also

  • getGPUBackend
Previous
getGPUBackend
Next
GPUBackend