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:ningxin hu <ningxin.hu@intel.com> Reviewed-by:
Joshua Bell <jsbell@chromium.org> Commit-Queue: Joshua Bell <jsbell@chromium.org> Cr-Commit-Position: refs/heads/main@{#1281945}
Loading
Please register or sign in to comment