From 80b1e8c7145b4e787bc2ff85b3a7e72bc2e700c3 Mon Sep 17 00:00:00 2001 From: Arthur Islamov Date: Mon, 11 Sep 2023 23:47:34 +0400 Subject: [PATCH] Update js/web/lib/wasm/jsep/webgpu/program-manager.ts Co-authored-by: Yulong Wang <7679871+fs-eire@users.noreply.github.com> --- js/web/lib/wasm/jsep/webgpu/program-manager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/web/lib/wasm/jsep/webgpu/program-manager.ts b/js/web/lib/wasm/jsep/webgpu/program-manager.ts index 3ff8e27e6a3d3..4714da66bf400 100644 --- a/js/web/lib/wasm/jsep/webgpu/program-manager.ts +++ b/js/web/lib/wasm/jsep/webgpu/program-manager.ts @@ -127,7 +127,7 @@ export class ProgramManager { build(programInfo: ProgramInfo, normalizedDispatchGroupSize: [number, number, number]): Artifact { const device = this.backend.device; const extensions: string[] = []; - if (this.backend.device.features.has('shader-f16')) { + if (device.features.has('shader-f16')) { extensions.push('enable f16;'); } const shaderHelper = createShaderHelper(normalizedDispatchGroupSize);