Skip to content

Commit

Permalink
Error out if unsupported antialiasing attribute specified.
Browse files Browse the repository at this point in the history
  • Loading branch information
satyajandhyala committed Dec 18, 2023
1 parent a66278d commit d38c1f7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/web/lib/wasm/jsep/webgpu/ops/resize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]});
Expand Down

0 comments on commit d38c1f7

Please sign in to comment.