From d38c1f7b0f18604badd7ce0deda55b69277c034a Mon Sep 17 00:00:00 2001 From: Satya Jandhyala Date: Mon, 18 Dec 2023 14:22:15 -0800 Subject: [PATCH] Error out if unsupported antialiasing attribute specified. --- js/web/lib/wasm/jsep/webgpu/ops/resize.ts | 3 +++ 1 file changed, 3 insertions(+) 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]});