diff --git a/js/web/lib/onnxjs/backends/backend-webgpu.ts b/js/web/lib/onnxjs/backends/backend-webgpu.ts index 190728ee71fdb..4472024b9143f 100644 --- a/js/web/lib/onnxjs/backends/backend-webgpu.ts +++ b/js/web/lib/onnxjs/backends/backend-webgpu.ts @@ -2,6 +2,7 @@ // Licensed under the MIT License. import {env} from 'onnxruntime-common'; + import {Backend, SessionHandler} from '../backend'; import {Logger} from '../instrument'; import {Session} from '../session'; diff --git a/js/web/lib/onnxjs/backends/webgpu/ops/binary-op.ts b/js/web/lib/onnxjs/backends/webgpu/ops/binary-op.ts index d6489bdbda6d2..283f5fa894c52 100644 --- a/js/web/lib/onnxjs/backends/webgpu/ops/binary-op.ts +++ b/js/web/lib/onnxjs/backends/webgpu/ops/binary-op.ts @@ -6,6 +6,7 @@ import {Tensor} from '../../../tensor'; import {BroadcastUtil, ShapeUtil} from '../../../util'; import {WebGpuInferenceHandler} from '../inference-handler'; import {GpuDataType, ProgramInfo, ProgramInfoLoader, ProgramMetadata} from '../types'; + import {createIndicesHelper, WORKGROUP_SIZE} from './common'; type BuiltinFunctionName = string; diff --git a/js/web/lib/onnxjs/backends/webgpu/ops/concat.ts b/js/web/lib/onnxjs/backends/webgpu/ops/concat.ts index cc03a8e5d699e..8c2d637aec995 100644 --- a/js/web/lib/onnxjs/backends/webgpu/ops/concat.ts +++ b/js/web/lib/onnxjs/backends/webgpu/ops/concat.ts @@ -8,6 +8,7 @@ import {Tensor} from '../../../tensor'; import {ShapeUtil} from '../../../util'; import {WebGpuInferenceHandler} from '../inference-handler'; import {GpuDataType, ProgramInfo, ProgramInfoLoader, ProgramMetadata} from '../types'; + import {createIndicesHelper, IndicesHelper, WORKGROUP_SIZE} from './common'; export interface ConcatAttributes extends AttributeWithCacheKey { diff --git a/js/web/lib/onnxjs/backends/webgpu/ops/gather.ts b/js/web/lib/onnxjs/backends/webgpu/ops/gather.ts index 974678b868fc0..f4e713fc5693d 100644 --- a/js/web/lib/onnxjs/backends/webgpu/ops/gather.ts +++ b/js/web/lib/onnxjs/backends/webgpu/ops/gather.ts @@ -8,6 +8,7 @@ import {Tensor} from '../../../tensor'; import {ShapeUtil} from '../../../util'; import {WebGpuInferenceHandler} from '../inference-handler'; import {GpuDataType, ProgramInfo, ProgramInfoLoader, ProgramMetadata} from '../types'; + import {createIndicesHelper, WORKGROUP_SIZE} from './common'; interface GatherAttributes extends AttributeWithCacheKey { diff --git a/js/web/lib/onnxjs/backends/webgpu/ops/unary-op.ts b/js/web/lib/onnxjs/backends/webgpu/ops/unary-op.ts index 0b15b4b77b51e..824b037f0af91 100644 --- a/js/web/lib/onnxjs/backends/webgpu/ops/unary-op.ts +++ b/js/web/lib/onnxjs/backends/webgpu/ops/unary-op.ts @@ -7,6 +7,7 @@ import {Tensor} from '../../../tensor'; import {MAX_CLIP, MIN_CLIP} from '../../../util'; import {WebGpuInferenceHandler} from '../inference-handler'; import {GpuDataType, ProgramInfo, ProgramInfoLoader, ProgramMetadata} from '../types'; + import {WORKGROUP_SIZE} from './common'; type BuiltinFunctionName = string; diff --git a/js/web/lib/onnxjs/backends/webgpu/tensor-data-manager.ts b/js/web/lib/onnxjs/backends/webgpu/tensor-data-manager.ts index 8133444e45169..aae44328e2200 100644 --- a/js/web/lib/onnxjs/backends/webgpu/tensor-data-manager.ts +++ b/js/web/lib/onnxjs/backends/webgpu/tensor-data-manager.ts @@ -2,6 +2,7 @@ // Licensed under the MIT License. import {createView, Tensor} from '../../tensor'; + import {createGpuDataManager, GpuDataManager} from './gpu-data-manager'; import {GpuData, GpuDataId, GpuDataType} from './types'; diff --git a/js/web/lib/onnxjs/backends/webgpu/types.ts b/js/web/lib/onnxjs/backends/webgpu/types.ts index d5f19aefaca2b..96f6e247de5a3 100644 --- a/js/web/lib/onnxjs/backends/webgpu/types.ts +++ b/js/web/lib/onnxjs/backends/webgpu/types.ts @@ -2,6 +2,7 @@ // Licensed under the MIT License. import {Guid} from 'guid-typescript'; + import {Tensor} from '../../tensor'; export enum GpuDataType {