Skip to content

Commit

Permalink
Update js/web/lib/wasm/jsep/webgpu/program-manager.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Yulong Wang <[email protected]>
  • Loading branch information
dakenf and fs-eire authored Sep 11, 2023
1 parent 0d34fec commit 80b1e8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/web/lib/wasm/jsep/webgpu/program-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 80b1e8c

Please sign in to comment.