-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Support dynamic 'pads' and 'value' in Pad operator #2031
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…s. (onnx#1930) * Change the return type for the zipmap operator to match the description in the spec. * Prevent unused variables from generating warnings across all platforms. This was observed in onnxruntime when __ONNX_NO_DOC_STRINGS was enabled. * nit change
* fix shape inference and add tests for shape inference * cosmetic fixes * plus some formatting
* Fix shape inference for matmul when there is no input shape, and provide better coverage for testcases * add test for qlinearmatmul as weel
wschin
reviewed
Sep 13, 2019
wschin
reviewed
Sep 13, 2019
wschin
reviewed
Sep 13, 2019
wschin
reviewed
Sep 13, 2019
wschin
reviewed
Sep 13, 2019
ebarsoum
approved these changes
Sep 15, 2019
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolve conflict, add example for other modes, and rename value to constant_value.
hariharans29
commented
Sep 16, 2019
wschin
approved these changes
Sep 17, 2019
Hi @hariharans29, glad to see your change has been merged into master, but I still got the following error:
I am using:
Do you have any advice about this error? Thanks! |
jcwchen
pushed a commit
to jcwchen/onnx
that referenced
this pull request
Sep 23, 2020
* Pad spec update * More changes * More changes * Make pads and value attributes inputs in Pad operator * More changes * More changes * More cahnges * More changes * Remove tab * Fix formatting issues * More changes * Pad spec update * More changes * More changes * Prevent unused variables from generating warnings across all platforms. (onnx#1930) * Change the return type for the zipmap operator to match the description in the spec. * Prevent unused variables from generating warnings across all platforms. This was observed in onnxruntime when __ONNX_NO_DOC_STRINGS was enabled. * nit change * Shape Inference Tests for QOps (onnx#1929) * fix shape inference and add tests for shape inference * cosmetic fixes * plus some formatting * Fix shape inference for matmul (onnx#1941) * Fix shape inference for matmul when there is no input shape, and provide better coverage for testcases * add test for qlinearmatmul as weel * Make pads and value attributes inputs in Pad operator * More changes * More changes * More cahnges * More changes * Remove tab * Fix formatting issues * More changes * Fix line ending issue * Update Operators md file * Fix typo * Updating TestCoverage.md file * Nit fix * Fix accidental revert * PR feedback * More PR feedback changes * Optimizer passes changes * Remove unnecessary line in def file * More formatting changes * Add 2 files missed previously * Commit missed out file * Fix build break * Update tests * Initial commit * Formatting * Refactor ParseRawData * More refactroing changes * Introduce shape inference failure in case of wrong number of pad values * Resolve comments * Avoid vector copy * Fix comment * More changes * Update Changelog.md * Def changes * More updates * Formatting * Check-in tests * Update docs * Update Changelog.md * Docs update * Update Changelog.md * Update Changelog.md * Resolve comments * Add docs * Addign docs * Update Changelog.md * Build break fix * Fix build break * Add optimizer tests for older opset Pad * Add back older opset Pad shape inference tests * Fix build break * Fix build break * Account for Value to Constant_value change in some comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Change description:
This change is to make two static attributes of the Pad op - 'pads' and 'value' into dynamic inputs to support conversion of some TensorFlow models into ONNX which allow these 2 values to be fed in dynamically to the op. This change is to basically support conversion of such TF models into ONNX.
Summary of changes:
Issues that are resolved:
Resolves #1765 - Adds description and examples for 'Edge' and 'Reflect' mode
Resolves #2313 - Allows testing optimizer(s) for previous opset specs of ops/nodes