Issue: DeepLabV3 contains Resize node in ONNX model and ResizeBilinear in TFLite model. It's corresponding op in WebNN is Resample2d. Resize node contains coordinate_transformation_mode=align_corners, ResizeBilinear node contains align_corners=true and half_pixel_centers=false. While WebNN doesn't support such coordinate transformation modes and its default behavior equals to align_corners=false and half_pixel_centers=true.
Compares all the behaviors in different backends and frameworks as follows:
Issue: DeepLabV3 contains
Resize
node in ONNX model andResizeBilinear
in TFLite model. It's corresponding op in WebNN isResample2d
.Resize
node containscoordinate_transformation_mode=align_corners
,ResizeBilinear
node containsalign_corners=true
andhalf_pixel_centers=false
. While WebNN doesn't support such coordinate transformation modes and its default behavior equals toalign_corners=false
andhalf_pixel_centers=true
.Compares all the behaviors in different backends and frameworks as follows:
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40">
TFLite ([half_pixel_centers, align_corners](https://www.tensorflow.org/mlir/tfl_ops#tflresize_bilinear_mlirtflresizebilinearop)) | ONNX ([coordinate_transformation_mode enum](https://github.com/onnx/onnx/blob/main/docs/Operators.md#resize)) | OpenVINO ([coordinate_transformation_mode enum](https://docs.openvino.ai/latest/openvino_docs_ops_image_Interpolate_4.html#doxid-openvino-docs-ops-image-interpolate-4)) | [DML ](https://docs.microsoft.com/en-us/windows/win32/api/directml/ns-directml-dml_resample1_operator_desc)| WebNN -- | -- | -- | -- | -- half_pixel_centers=true | half_pixel | half_pixel | Supported | Default behavior N/A | pytorch_half_pixel | pytorch_half_pixel | Supported | N/A half_pixel_centers=false align_corners=false | asymmetric | asymmetric | Supported | N/A N/A | N/A | tf_half_pixel_for_nn | N/A | N/A align_corners=true | align_corners | align_corners | Supported | N/A N/A | tf_crop_and_resize | N/A | Supported | N/A