Commit f5be059
add kernel tests for ops that changed in opset18 (#19767)
### Description
<!-- Describe your changes. -->
- [x] Pad operator has introduced a new input called "axes" which
specifies which axis to pad. But it defaults to input_rank if axes is
not provided which was the behavior before the opset upgrade.
- [x] ReduceMean
- [x] ReduceL2
- [x] ReduceLogSumExp
- [x] ReduceSum
- Reduction ops all had the axes attribute switched to an input and a
new attribute called "noop_with_empty_axes" was added to define what to
do when axes is not specified.
- [x] Resize has had two new attributes introduced: antialias and
keep_aspect_ratio_policy. From Operators.md I've gathered:
"Antialiasing is achieved by stretching the resampling filter by a
factor max(1, 1 / scale), which means that when downsampling, more input
pixels contribute to an output pixel."
keep_aspect_ratio_policy "describes how to interpret the `sizes` input
with regard to keeping the original aspect ratio of the input." there
are a couple enum-type options that specify different policies and what
to do in each case.
- NOTE: Baiju already included opset18 tests in
microsoft/onnxruntime#17772
- [x] ScatterElements/ScatterND has had a new attribute introduced
called "reduction." This specifies the type of reduction to apply: none
(default), add, mul, max, min.
- [x] Split introduced a new attribute called "num_outputs" which
specifies how many outputs to split the input tensor into. This is in
contrast to the previous, default behavior of specifying a "split" input
which defines the size of each resultant tensor of the output.
### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->1 parent 69ee5f7 commit f5be059
File tree
2 files changed
+55
-12
lines changed- orttraining/orttraining
- core/graph
- test/gradient
2 files changed
+55
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1112 | 1112 | | |
1113 | 1113 | | |
1114 | 1114 | | |
| 1115 | + | |
1115 | 1116 | | |
1116 | 1117 | | |
1117 | 1118 | | |
| |||
1122 | 1123 | | |
1123 | 1124 | | |
1124 | 1125 | | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
1125 | 1129 | | |
1126 | 1130 | | |
1127 | 1131 | | |
| |||
1152 | 1156 | | |
1153 | 1157 | | |
1154 | 1158 | | |
1155 | | - | |
1156 | | - | |
1157 | | - | |
1158 | | - | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
1159 | 1164 | | |
1160 | | - | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
| 1168 | + | |
| 1169 | + | |
| 1170 | + | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
1161 | 1174 | | |
1162 | 1175 | | |
1163 | 1176 | | |
| |||
1188 | 1201 | | |
1189 | 1202 | | |
1190 | 1203 | | |
1191 | | - | |
1192 | | - | |
| 1204 | + | |
| 1205 | + | |
1193 | 1206 | | |
1194 | | - | |
1195 | | - | |
| 1207 | + | |
| 1208 | + | |
| 1209 | + | |
| 1210 | + | |
| 1211 | + | |
| 1212 | + | |
| 1213 | + | |
| 1214 | + | |
1196 | 1215 | | |
1197 | 1216 | | |
1198 | 1217 | | |
| |||
Lines changed: 27 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
607 | 607 | | |
608 | 608 | | |
609 | 609 | | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
610 | 614 | | |
611 | 615 | | |
612 | 616 | | |
| |||
619 | 623 | | |
620 | 624 | | |
621 | 625 | | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
622 | 630 | | |
623 | 631 | | |
624 | 632 | | |
| |||
641 | 649 | | |
642 | 650 | | |
643 | 651 | | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
644 | 657 | | |
645 | 658 | | |
646 | 659 | | |
647 | 660 | | |
648 | 661 | | |
649 | 662 | | |
650 | 663 | | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
651 | 668 | | |
652 | 669 | | |
653 | 670 | | |
| |||
698 | 715 | | |
699 | 716 | | |
700 | 717 | | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
701 | 725 | | |
702 | 726 | | |
703 | 727 | | |
| |||
2733 | 2757 | | |
2734 | 2758 | | |
2735 | 2759 | | |
2736 | | - | |
| 2760 | + | |
2737 | 2761 | | |
2738 | 2762 | | |
2739 | 2763 | | |
| |||
2803 | 2827 | | |
2804 | 2828 | | |
2805 | 2829 | | |
2806 | | - | |
| 2830 | + | |
2807 | 2831 | | |
2808 | 2832 | | |
2809 | 2833 | | |
| |||
2887 | 2911 | | |
2888 | 2912 | | |
2889 | 2913 | | |
2890 | | - | |
| 2914 | + | |
2891 | 2915 | | |
2892 | 2916 | | |
2893 | 2917 | | |
| |||
0 commit comments