onnxruntime
535151bd - Fix DML Resize ROI axis expansion (#32747)

Commit
50 days ago
Fix DML Resize ROI axis expansion (#32747) This pull request improves the handling and validation of the `roi` (region of interest) input in the Resize operator, and adds corresponding tests to ensure correct behavior. The main focus is on ensuring the `roi` input length matches expectations and correcting how ROI values are mapped, particularly when axes are specified. **Operator logic improvements:** * Added validation to ensure that the `roi` input length is exactly twice the number of axes, preventing misconfiguration and potential runtime errors. * Corrected the indexing logic for mapping ROI values to the default ROI vector, ensuring correct placement of values when axes are specified. * Updated the internal representation of `m_regionOfInterest` to use the processed ROI values. **Test coverage enhancements:** * Added a new unit test `Axes_Roi_18` to verify correct Resize operator behavior when both `axes` and `roi` are specified, including correct output for a simple input. * Adjusted the `Roi_TooShortForAxes_18` test to remove the DML execution provider from the expected failure list, reflecting updated provider support or behavior. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Author
Parents
Loading