Skip to content

Commit

Permalink
remove validation for coordinate_transformation_mode
Browse files Browse the repository at this point in the history
  • Loading branch information
shiyi9801 committed Nov 12, 2024
1 parent f7d1f0f commit 2fdccf4
Showing 1 changed file with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -267,15 +267,9 @@ bool ResizeOpBuilder::IsOpSupportedImpl(const InitializedTensorSet& initializers
return false;
}

// coordinate_transformation_mode
// Spec issue for supporting more coordinate transformation modes:
// https://github.com/webmachinelearning/webnn/issues/270
const std::string coordinate_transformation_mode = helper.Get("coordinate_transformation_mode", "half_pixel");
if (coordinate_transformation_mode != "half_pixel") {
LOGS(logger, VERBOSE) << "Resize does not support coordinate_transformation_mode: "
<< coordinate_transformation_mode;
return false;
}
// Ignore coordinate_transformation_mode because WebNN only supports half_pixel mode.
// TODO: Add validation for coordinate_transformation_mode. Related spec issue for supporting attribute coordinate
// transformation modes: https://github.com/webmachinelearning/webnn/issues/270

// exclude_outside
const auto exclude_outside = helper.Get("exclude_outside", 0);
Expand Down

0 comments on commit 2fdccf4

Please sign in to comment.