diff --git a/js/web/lib/wasm/jsep/webgpu/ops/resize.ts b/js/web/lib/wasm/jsep/webgpu/ops/resize.ts index 33cf0ad36439e..7b5b91faad380 100644 --- a/js/web/lib/wasm/jsep/webgpu/ops/resize.ts +++ b/js/web/lib/wasm/jsep/webgpu/ops/resize.ts @@ -623,6 +623,9 @@ export const resize = (context: ComputeContext, attributes: ResizeAttributes): v const sizes: number[] = []; const roi: number[] = []; const opsetVersion = getOpsetVersionFromCustomDataBuffer(context); + if (attributes.antialias !== 0) { + throw Error('Only default value (0) for Antialias attribute is supported'); + } validateInputs(context.inputs, attributes, opsetVersion, scales, sizes, roi); context.compute( createResizeProgramInfo(context.inputs[0], attributes, opsetVersion, scales, sizes, roi), {inputs: [0]});