Skip to content

Commit 7024cd6

Browse files
committed
format
1 parent 67f5e35 commit 7024cd6

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

js/web/lib/wasm/jsep/webgpu/ops/matmul.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,10 @@ export const matMul = (context: ComputeContext): void => {
208208
const reshapedA = context.inputs[0].reshape([1, batchA, K]);
209209
const reshapedB = context.inputs[0].reshape([1, K, N]);
210210
const matmulOutputShape = [1, batchA, N];
211-
const matmulInputs = [reshapedA, reshapedB]
212-
context.compute(createMatmulProgramInfo(matmulInputs, { activation: '' }, outputShape, matmulOutputShape), { inputs: matmulInputs });
211+
const matmulInputs = [reshapedA, reshapedB];
212+
context.compute(createMatmulProgramInfo(matmulInputs, { activation: '' }, outputShape, matmulOutputShape), {
213+
inputs: matmulInputs,
214+
});
213215
} else {
214216
context.compute(createMatmulProgramInfo(context.inputs, { activation: '' }, outputShape));
215217
}

js/web/test/data/ops/matmul.jsonc

+4-8
Original file line numberDiff line numberDiff line change
@@ -104,16 +104,14 @@
104104
"type": "float32"
105105
},
106106
{
107-
"data": [
108-
13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24
109-
],
107+
"data": [13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24],
110108
"dims": [1, 4, 3],
111109
"type": "float32"
112110
}
113111
],
114112
"outputs": [
115113
{
116-
"data": [190,200,210,470,496,522,1310,1384,1458,1590,1680,1770,750,792,834,1030,1088,1146],
114+
"data": [190, 200, 210, 470, 496, 522, 1310, 1384, 1458, 1590, 1680, 1770, 750, 792, 834, 1030, 1088, 1146],
117115
"dims": [6, 1, 3],
118116
"type": "float32"
119117
}
@@ -128,16 +126,14 @@
128126
"type": "float32"
129127
},
130128
{
131-
"data": [
132-
13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24
133-
],
129+
"data": [13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24],
134130
"dims": [1, 1, 4, 3],
135131
"type": "float32"
136132
}
137133
],
138134
"outputs": [
139135
{
140-
"data": [190,200,210,470,496,522,1310,1384,1458,1590,1680,1770,750,792,834,1030,1088,1146],
136+
"data": [190, 200, 210, 470, 496, 522, 1310, 1384, 1458, 1590, 1680, 1770, 750, 792, 834, 1030, 1088, 1146],
141137
"dims": [2, 3, 1, 3],
142138
"type": "float32"
143139
}

0 commit comments

Comments
 (0)