Skip to content
Commit 08b65bf9 authored by mingmingtasd's avatar mingmingtasd Committed by Chromium LUCI CQ
Browse files

WebNN: Correct the validation that resample2d's scales must be positive

According to validation steps of Resample2d[1], any of scales must
be greater than 0. This CL corrects the missed validation for
any of scales is exact 0 which is invalid.

[1] https://webmachinelearning.github.io/webnn/#api-mlgraphbuilder-resample2d-method

Bug: 332587370
Change-Id: I35953c516736b85d0ebb8fc176bb14c15d7e7b64
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5417024


Reviewed-by: default avatarningxin hu <ningxin.hu@intel.com>
Reviewed-by: default avatarJoshua Bell <jsbell@chromium.org>
Commit-Queue: Joshua Bell <jsbell@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1281945}
parent 113108c6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment