Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tfjs-backend-webgpu/src/matmul_packed_webgpu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ export function makeMatMulVectorSource(
workGroupSize[1] === 1 && workGroupSize[2] === 1,
() => `A linear work group size is required. But got ${workGroupSize}.`);
return `
let TileSize = ${workGroupSize[0] * 4};
const TileSize = ${workGroupSize[0] * 4};
var<workgroup> mm_Asub : array<vec4<f32>, ${workGroupSize[0]}>;

${getMainHeaderString()}
Expand Down
4 changes: 2 additions & 2 deletions tfjs-backend-webgpu/src/webgpu_program.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ function makeShader(
outShapeStrides : vec2<i32>,
};

@group(0) @binding(0) var<storage, write> result: array<${
@group(0) @binding(0) var<storage, read_write> result: array<${
mapToWgslTypes(outputData.dtype, program.isVec4)}>;
@group(0) @binding(2) var<uniform> uniforms: Uniform;
`);
Expand Down Expand Up @@ -238,7 +238,7 @@ function makeShader(
`);
} else {
prefixSnippets.push(`
@group(0) @binding(0) var<storage, write> result: array<${
@group(0) @binding(0) var<storage, read_write> result: array<${
mapToWgslTypes(outputData.dtype, program.isVec4)}>;
`);
}
Expand Down