Skip to content

Onnx squeeze enabled with auto axis handling.#10742

Merged
masahi merged 5 commits intoapache:mainfrom
ganler:fix-onnx-squeeze
Mar 24, 2022
Merged

Onnx squeeze enabled with auto axis handling.#10742
masahi merged 5 commits intoapache:mainfrom
ganler:fix-onnx-squeeze

Conversation

@ganler
Copy link
Contributor

@ganler ganler commented Mar 23, 2022

According to ONNX spec: https://github.com/onnx/onnx/blob/main/docs/Changelog.md#squeeze-13

If axes is not provided, all the single dimensions will be removed from the shape.

This PR supports the absence of empty axis handling and the edge case of scalar.squeeze().

cc: @masahi @AndrewZhaoLuo @junrushao1994

@ganler
Copy link
Contributor Author

ganler commented Mar 24, 2022

Hi @masahi the CI finally passed. Could help with the review. :-)

@masahi masahi merged commit 4974b51 into apache:main Mar 24, 2022
pfk-beta pushed a commit to pfk-beta/tvm that referenced this pull request Apr 11, 2022
* fix squeeze when axis is absent

* lint

* tidy code

* fix argument
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