diff --git a/examples/webgpu-embedding-benchmark/main.js b/examples/webgpu-embedding-benchmark/main.js index bdf731395..bf1ab38b5 100644 --- a/examples/webgpu-embedding-benchmark/main.js +++ b/examples/webgpu-embedding-benchmark/main.js @@ -107,7 +107,7 @@ let gpuHasFp16 = false; try { // Shouldn't fail since the WebGPU model has loaded successfully const adapter = await navigator.gpu.requestAdapter(); - adapterInfo = await adapter.requestAdapterInfo(); + adapterInfo = adapter.info || await adapter.requestAdapterInfo(); gpuHasFp16 = adapter.features.has('shader-f16') } catch (err) { adapterInfo = {};