diff --git a/js/web/lib/wasm/jsep/webgpu/ops/einsum.ts b/js/web/lib/wasm/jsep/webgpu/ops/einsum.ts index 5382969a332ed..cccaa5708aa3d 100644 --- a/js/web/lib/wasm/jsep/webgpu/ops/einsum.ts +++ b/js/web/lib/wasm/jsep/webgpu/ops/einsum.ts @@ -178,7 +178,7 @@ class EinsumEquation { outputDims: number[]; // Output dimensions of the equation } // End of class EinsumEquation -const appendMax = (name: string): string => name + '_max' +const appendMax = (name: string): string => name + '_max'; const createEinsumProgramInfo = (inputs: readonly TensorView[], einsumEquation: EinsumEquation): ProgramInfo => { const dataType = inputs[0].dataType; @@ -236,8 +236,9 @@ const createEinsumProgramInfo = (inputs: readonly TensorView[], einsumEquation: reduceOpCompute.push(`prod *= ${inputVars[i].getByIndices(`input${i}Indices`)};`); } }); - reduceOpsLoopHeaders.push(`for(var ${symbol}: u32 = 0; ${symbol} < uniforms.${appendMax(symbol)}; ${symbol}++) {`); - uniformsSymbols.push(symbol) + reduceOpsLoopHeaders.push( + `for(var ${symbol}: u32 = 0; ${symbol} < uniforms.${appendMax(symbol)}; ${symbol}++) {`); + uniformsSymbols.push(symbol); reduceOpsLoopFooters.push('}'); } });