Skip to content

Commit 65f6575

Browse files
committed
address comments
1 parent 38287f9 commit 65f6575

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

js/web/lib/wasm/jsep/webgpu/ops/reduce-shared.ts

+1
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ export const createReduceSharedProgramInfo = (
192192
// One work group is responsible for only one element of output.
193193
return {
194194
name,
195+
// Note that in JSEP, WG size is not included in cache by default, but WebGPU EP it is.
195196
shaderCache: { hint: `${cacheKey};${workgroupSize}`, inputDependencies: ['type'] },
196197
getShaderSource,
197198
getRunData: () => ({

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

+1
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ const createSoftmaxProgramInfo = (context: ComputeContext, attributes: SoftmaxAt
159159
const result = context.compute(
160160
{
161161
name: 'Softmax',
162+
// Note that in JSEP, WG size is not included in cache by default, but WebGPU EP it is.
162163
shaderCache: { hint: `${components};${WG}`, inputDependencies: ['type'] },
163164
getRunData: () => ({
164165
outputs: [{ dims: transposedInputShape, dataType: transposedInput.dataType }],

0 commit comments

Comments
 (0)