torch-node.loadGPUProvider
function loadGPUProvider(): WGPULoad the GPU provider based on environment configuration.
Attempts to load the GPU backend specified by the TORCH_GPU_BACKEND environment
variable. If wgpu-native is selected but not installed, falls back to attempting
to load Dawn. Throws an error if no suitable backend can be loaded.
Returns
WGPU– A WGPU instance from the loaded backend