Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add kernel tests for ops that changed in opset18 #19767

Merged
merged 11 commits into from
Mar 19, 2024

Conversation

prathikr
Copy link
Contributor

@prathikr prathikr commented Mar 4, 2024

Description

  • 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.
  • ReduceMean
  • ReduceL2
  • ReduceLogSumExp
  • 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.
  • 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.
  • ScatterElements/ScatterND has had a new attribute introduced called "reduction." This specifies the type of reduction to apply: none (default), add, mul, max, min.
  • 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

@prathikr prathikr requested review from centwang and askhade and removed request for centwang March 5, 2024 01:26
@prathikr prathikr marked this pull request as ready for review March 5, 2024 01:33
@prathikr prathikr requested a review from wschin March 5, 2024 21:35
@prathikr prathikr requested review from centwang and removed request for askhade and wschin March 19, 2024 00:14
@prathikr prathikr merged commit 26cd3c1 into main Mar 19, 2024
95 checks passed
@prathikr prathikr deleted the prathikrao/opset18-kernel-tests branch March 19, 2024 16:33
TedThemistokleous pushed a commit to TedThemistokleous/onnxruntime that referenced this pull request May 7, 2024
### 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#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. -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants