Skip to content

Commit

Permalink
Fixed lint errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
satyajandhyala committed Nov 26, 2023
1 parent 8ce7f7f commit 8cc9e70
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions js/web/lib/wasm/jsep/webgpu/ops/einsum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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('}');
}
});
Expand Down

0 comments on commit 8cc9e70

Please sign in to comment.