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);