Skip to content

avoid modifying node when creating test cases#4517

Merged
liqunfu merged 3 commits intoonnx:mainfrom
liqunfu:liqun/test_case_shall_not_modify_node
Sep 20, 2022
Merged

avoid modifying node when creating test cases#4517
liqunfu merged 3 commits intoonnx:mainfrom
liqunfu:liqun/test_case_shall_not_modify_node

Conversation

@liqunfu
Copy link
Copy Markdown
Contributor

@liqunfu liqunfu commented Sep 15, 2022

Signed-off-by: Liqun Fu liqfu@microsoft.com

Description

avoid modifying node when creating test cases

Motivation and Context

An operator node is used to create test cases. Sometimes a node is used to create multiple test cases. This requires that the node is immutable when creating a test case. This is especially true when a test with default attributes. In this PR, change is added to avoid default attributes being added to the original node which will cause subsequent test case creation failure.
This bug was detected when changing ReduceSumSquare to function op. When extended cases were created, a attribute of empty attribute was added to the original node which cause the next test case to fail.

Signed-off-by: Liqun Fu <liqfu@microsoft.com>
@liqunfu liqunfu requested a review from a team as a code owner September 15, 2022 20:58
…he original node

Signed-off-by: Liqun Fu <liqfu@microsoft.com>
Signed-off-by: Liqun Fu <liqfu@microsoft.com>
@liqunfu liqunfu merged commit 895593a into onnx:main Sep 20, 2022
broune pushed a commit to broune/onnx that referenced this pull request May 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants