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

Cleanup shape inference implementation #5596

Merged
merged 16 commits into from Oct 5, 2023
Merged

Conversation

gramalingam
Copy link
Contributor

@gramalingam gramalingam commented Sep 15, 2023

Description

  • Change the handling of undefined operators (to produce an error message).
  • Stop special treatment of experimental ops.
  • [Both of above are very old special handling. Recommend removing this, unless we find a compelling reason to maintain compatibility.]
  • Cleanup the use of an unnecessary GraphProto object to act as container for inferred types.
  • Move methods (BindValuesOnCall/Return) that do not need to be class methods into functions
  • Change method names to comply with naming convention.

Motivation and Context

  • General cleanup
  • Also prepare this for feature extensions, like incremental inference for use by inliner.

Signed-off-by: Ganesan Ramalingam <grama@microsoft.com>
Signed-off-by: Ganesan Ramalingam <grama@microsoft.com>
Signed-off-by: Ganesan Ramalingam <grama@microsoft.com>
Signed-off-by: Ganesan Ramalingam <grama@microsoft.com>
@gramalingam gramalingam requested a review from a team as a code owner September 15, 2023 23:29
Signed-off-by: Ganesan Ramalingam <grama@microsoft.com>
Signed-off-by: Ganesan Ramalingam <grama@microsoft.com>
Signed-off-by: Ganesan Ramalingam <grama@microsoft.com>
Signed-off-by: Ganesan Ramalingam <grama@microsoft.com>
@gramalingam gramalingam changed the title [DRAFT: WIP] Cleanup shape inference implementation Cleanup shape inference implementation Sep 27, 2023
onnx/shape_inference/implementation.cc Show resolved Hide resolved
onnx/shape_inference/implementation.cc Show resolved Hide resolved
onnx/shape_inference/implementation.cc Show resolved Hide resolved
onnx/shape_inference/implementation.cc Show resolved Hide resolved
onnx/shape_inference/implementation.cc Show resolved Hide resolved
onnx/test/model_inference_test.py Show resolved Hide resolved
justinchuby and others added 4 commits October 2, 2023 14:11
Signed-off-by: Ganesan Ramalingam <grama@microsoft.com>
Signed-off-by: Ganesan Ramalingam <grama@microsoft.com>
@gramalingam gramalingam added this pull request to the merge queue Oct 5, 2023
Merged via the queue into onnx:main with commit 2caeb6a Oct 5, 2023
35 checks passed
@gramalingam gramalingam deleted the si-cleanup branch October 5, 2023 05:00
@justinchuby
Copy link
Contributor

Looks like the Windows release build starts failing from this PR: https://github.com/onnx/onnx/actions/runs/6414801812/job/17415759304#step:7:12115

github-merge-queue bot pushed a commit that referenced this pull request Oct 20, 2023
### Description
<!-- - Describe your changes. -->
Fix Windows Release CI failure : `onnx.lib(checker.obj) : error LNK2001:
unresolved external symbol "public: int __thiscall
google::protobuf::RepeatedField<int>::size(void)const "
(?size@?$RepeatedField@H@protobuf@google@@QBEHXZ)
[D:\a\onnx\onnx\onnx\.setuptools-cmake-build\onnx_cpp2py_export.vcxproj]`
by setting PATH properly. We should use prepend instead of append.

### 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. -->
Try to fix #5659. Currently Windows
Release CI starts to fail after #5596.

---------

Signed-off-by: jcwchen <jacky82226@gmail.com>
jcwchen added a commit to jcwchen/onnx that referenced this pull request Oct 20, 2023
…x#5678)

### Description
<!-- - Describe your changes. -->
Fix Windows Release CI failure : `onnx.lib(checker.obj) : error LNK2001:
unresolved external symbol "public: int __thiscall
google::protobuf::RepeatedField<int>::size(void)const "
(?size@?$RepeatedField@H@protobuf@google@@QBEHXZ)
[D:\a\onnx\onnx\onnx\.setuptools-cmake-build\onnx_cpp2py_export.vcxproj]`
by setting PATH properly. We should use prepend instead of append.

### 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. -->
Try to fix onnx#5659. Currently Windows
Release CI starts to fail after onnx#5596.

---------

Signed-off-by: jcwchen <jacky82226@gmail.com>
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.

None yet

3 participants