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

Fix: Window functions generate incorrect shape for with symmetric attribute #4256

Merged
merged 5 commits into from Jun 8, 2022

Conversation

smk2007
Copy link
Contributor

@smk2007 smk2007 commented Jun 7, 2022

Fix: Window functions generate incorrect shape for with symmetric attribute

Affects: hannwindow, hammingwindow, and blackmanwindow operators.

Issue: The periodic=0 option to create a symmetric window for these operators was incorrectly causing the size of the output to be reduced by 1 in the function definition.

Test added to verify output shape with periodic attribute set to 0.

STFT test slicing expected output incorrectly. This causes the DFT to be run on a different size, as opposed to be being run on the original size, and sliced after.

Signed-off-by: Sheil Kumar <smk2007@gmail.com>
@smk2007 smk2007 requested review from a team as code owners June 7, 2022 19:33
Signed-off-by: Sheil Kumar <smk2007@gmail.com>
Signed-off-by: Sheil Kumar <smk2007@gmail.com>
@garymm garymm added this to the 1.12 milestone Jun 7, 2022
Signed-off-by: Sheil Kumar <smk2007@gmail.com>
@jcwchen jcwchen added the run release CIs Use this label to trigger release tests in CI label Jun 7, 2022
Signed-off-by: Sheil Kumar <smk2007@gmail.com>
@gramalingam gramalingam merged commit 18c23d9 into onnx:main Jun 8, 2022
@garymm
Copy link
Contributor

garymm commented Jun 8, 2022

@etiotto please cherry pick

liqunfu pushed a commit that referenced this pull request Jun 9, 2022
…ribute (#4256)

* fix symmetric function definition, and add shape inference test

Signed-off-by: Sheil Kumar <smk2007@gmail.com>

* whitespace...

Signed-off-by: Sheil Kumar <smk2007@gmail.com>

* whitespace...

Signed-off-by: Sheil Kumar <smk2007@gmail.com>

* flake8 whitespace error

Signed-off-by: Sheil Kumar <smk2007@gmail.com>

* fix stft test

Signed-off-by: Sheil Kumar <smk2007@gmail.com>
liqunfu pushed a commit that referenced this pull request Jun 9, 2022
…ribute (#4256)

* fix symmetric function definition, and add shape inference test

Signed-off-by: Sheil Kumar <smk2007@gmail.com>

* whitespace...

Signed-off-by: Sheil Kumar <smk2007@gmail.com>

* whitespace...

Signed-off-by: Sheil Kumar <smk2007@gmail.com>

* flake8 whitespace error

Signed-off-by: Sheil Kumar <smk2007@gmail.com>

* fix stft test

Signed-off-by: Sheil Kumar <smk2007@gmail.com>
Signed-off-by: Liqun Fu <liqfu@microsoft.com>
jcwchen pushed a commit to jcwchen/onnx that referenced this pull request Jun 10, 2022
…ribute (onnx#4256)

* fix symmetric function definition, and add shape inference test

Signed-off-by: Sheil Kumar <smk2007@gmail.com>

* whitespace...

Signed-off-by: Sheil Kumar <smk2007@gmail.com>

* whitespace...

Signed-off-by: Sheil Kumar <smk2007@gmail.com>

* flake8 whitespace error

Signed-off-by: Sheil Kumar <smk2007@gmail.com>

* fix stft test

Signed-off-by: Sheil Kumar <smk2007@gmail.com>
Signed-off-by: Chun-Wei Chen <jacky82226@gmail.com>
jcwchen added a commit that referenced this pull request Jun 10, 2022
* Use op name rather than hard-coding Hann in window op doc strings. (#4248)

And strip trailing spaces.

Signed-off-by: Gary Miguel <garymiguel@microsoft.com>
Signed-off-by: Chun-Wei Chen <jacky82226@gmail.com>

* Fix: Window functions generate incorrect shape for with symmetric attribute (#4256)

* fix symmetric function definition, and add shape inference test

Signed-off-by: Sheil Kumar <smk2007@gmail.com>

* whitespace...

Signed-off-by: Sheil Kumar <smk2007@gmail.com>

* whitespace...

Signed-off-by: Sheil Kumar <smk2007@gmail.com>

* flake8 whitespace error

Signed-off-by: Sheil Kumar <smk2007@gmail.com>

* fix stft test

Signed-off-by: Sheil Kumar <smk2007@gmail.com>
Signed-off-by: Chun-Wei Chen <jacky82226@gmail.com>

* support truncation & fix big-endian support (#4238)

Signed-off-by: Ian Bearman <ianb@microsoft.com>
Signed-off-by: Chun-Wei Chen <jacky82226@gmail.com>

* Fix layer normalization's reference outputs (#4263)

Signed-off-by: Chun-Wei Chen <jacky82226@gmail.com>

* handle raw types correctly in helper.make_tensor (#4262)

Signed-off-by: Chun-Wei Chen <jacky82226@gmail.com>

* bump to 1.12.0rc4 for cherry-picks

Signed-off-by: Chun-Wei Chen <jacky82226@gmail.com>

* Fix sub-graph generation for LN (#4268)

Signed-off-by: Wei-Sheng Chin <wschin@outlook.com>
Signed-off-by: Chun-Wei Chen <jacky82226@gmail.com>

Co-authored-by: Gary Miguel <garymiguel@microsoft.com>
Co-authored-by: Sheil Kumar <smk2007@gmail.com>
Co-authored-by: Ian Bearman <ianb@microsoft.com>
Co-authored-by: Wei-Sheng Chin <wschin@outlook.com>
broune pushed a commit to broune/onnx that referenced this pull request May 6, 2023
…ribute (onnx#4256)

* fix symmetric function definition, and add shape inference test

Signed-off-by: Sheil Kumar <smk2007@gmail.com>

* whitespace...

Signed-off-by: Sheil Kumar <smk2007@gmail.com>

* whitespace...

Signed-off-by: Sheil Kumar <smk2007@gmail.com>

* flake8 whitespace error

Signed-off-by: Sheil Kumar <smk2007@gmail.com>

* fix stft test

Signed-off-by: Sheil Kumar <smk2007@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
run release CIs Use this label to trigger release tests in CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants