Skip to content

Commit

Permalink
Fix lint error.
Browse files Browse the repository at this point in the history
  • Loading branch information
satyajandhyala committed Mar 24, 2024
1 parent 919988f commit 83f2fde
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/web/lib/wasm/jsep/webgpu/ops/matmulnbits.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export const createMatMulNBitsProgramInfo =
var scale_index = col * ${nBlocksPerCol};
var b_indices: ${b.type.indices};
for (var c: u32 = 0; c < ${components}; c++) {
${b.indicesSet('b_indices', '0', `col + c`)};
${b.indicesSet('b_indices', '0', 'col + c')};
var block_offset: u32 = 0;
for (var block: u32 = 0; block < ${nBlocksPerCol}; block++) {
// The scale and zero points are computed per block.
Expand All @@ -174,9 +174,9 @@ export const createMatMulNBitsProgramInfo =
// Number of B elements per 32-bit word is 32/bits = 32/4 = 8
var offset: u32 = word_offset;
for (var j: u32 = 0; j < 8; j += ${aComponents}) {
${a.indicesSet('a_indices', aRank - 1, `offset`)};
${a.indicesSet('a_indices', aRank - 1, 'offset')};
for (var k: u32 = 0; k < ${outputNumber}u; k++) {
${a.indicesSet('a_indices', aRank - 2, `row + k`)};
${a.indicesSet('a_indices', aRank - 2, 'row + k')};
let a_data = ${a.getByIndices('a_indices')};
output_values[k]${components > 1 ? '[c]' : ''} += ${
aComponents === 1 ? 'a_data * b_dequantized_values[j]' : 'dot(a_data, b_dequantized_values[j])'};
Expand Down

0 comments on commit 83f2fde

Please sign in to comment.