Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@gramalingam
Copy link
Contributor

Description

Fixes a couple of issues revealed by Issue 5212.

(i) The data-propagation logic was not handling function-calls correctly. It was reusing the same map (for tracking values) in the caller and callee. We need to create a new map for the callee, and propagate values corresponding to the inputs (and outputs) to (and back from) the callee map.

(ii) Recently the proto definition was extended to specify default-values of attributes in FunctionProto. This extends the inference logic to account for it. (Note that the checker may require further extensions to handle this extension, that's to be done separately.)

(iii) Add test-cases to test the fixes.

Motivation and Context

Fixes a couple of issues revealed by Issue 5212

@gramalingam gramalingam requested review from a team as code owners May 12, 2023 18:58
Signed-off-by: Ganesan Ramalingam <[email protected]>
Signed-off-by: Ganesan Ramalingam <[email protected]>
Signed-off-by: Ganesan Ramalingam <[email protected]>
Copy link
Member

@jcwchen jcwchen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thank you for fixing this! Also confirmed this PR can help to resolve segfault issue for maf_gpt2_tiny.onnx from #5212.

@gramalingam gramalingam enabled auto-merge (squash) May 16, 2023 17:30
@gramalingam gramalingam merged commit 213b525 into onnx:main May 16, 2023
q-ycong-p pushed a commit to q-ycong-p/onnx that referenced this pull request May 18, 2023
Signed-off-by: Ganesan Ramalingam <[email protected]>
Signed-off-by: Yu Cong <[email protected]>
adityagoel4512 pushed a commit to adityagoel4512/onnx that referenced this pull request Jul 28, 2023
Signed-off-by: Ganesan Ramalingam <[email protected]>
Signed-off-by: Aditya Goel <[email protected]>
@abock abock mentioned this pull request Aug 3, 2023
5 tasks
yuanyao-nv pushed a commit to yuanyao-nv/onnx that referenced this pull request Aug 7, 2023
yuanyao-nv pushed a commit to yuanyao-nv/onnx that referenced this pull request Aug 7, 2023
Signed-off-by: Ganesan Ramalingam <[email protected]>
Signed-off-by: Yuan Yao <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants