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

Include guidance on adding new operators in Contributing.md #1416

Merged
merged 3 commits into from Sep 21, 2018
Merged

Include guidance on adding new operators in Contributing.md #1416

merged 3 commits into from Sep 21, 2018

Conversation

fdwr
Copy link
Contributor

@fdwr fdwr commented Sep 14, 2018

Often times new PR descriptions are light on details necessary for implementors to understand the motivation behind their addition and to correctly implement them.

Often times new PR descriptions are light on details necessary for implementors to understand the motivation behind their addition and to correctly implement them.

For implementors in the ONNX community to be able to effectively implement any new operators proposed, pull requests should include:

- Operator description - just 1 to 2 sentences describing the operation (e.g. “The new Expand operator broadcasts an input tensor to an output shape using a shape tensor”). A more complete description will be found in the actual PR, but readers should be able to get a summary up front without reading through the diff.
Copy link
Member

Choose a reason for hiding this comment

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

1 to 2 sentences sounds inappropriate... A clear definition is wanted. I think we should add the steps to generate/update Operators.md and TestCoverage.md.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@houseroad Yes, the description in Operators.md had better be clearly defined. I was referring to the opening comment in the PR, for which people could be a little more brief than what they say in Operators.md, but not so brief as PR 1089 "This PR will add a new operator "expand" to onnx", as it becomes tedious to dig into the raw files across dozens of PR's when trying to get a holistic view of what new operators we need to support during new releases. Maybe people should just copy the description from their Operators.md into the first PR comment? Regarding regenerating Operators.md and TestCoverage.md, I'd support someone adding those details who is familiar with the process (as I don't know them).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

e.g. "Operator description - a clear description of what the operator does and how it works, both in Operators.md and the opening PR comment, so that readers can understand a summary even before reviewing the files changed (you can just copy the summary from Operators.md into the PR comment)."

Copy link
Contributor

Choose a reason for hiding this comment

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

@fdwr I agree with your intent of having a smaller description in the opening comment of the PR and full detailed description in Operators.md doc. I think we just need to spell that out in the section above more clearly.

Copy link
Member

@houseroad houseroad left a comment

Choose a reason for hiding this comment

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

Adding the instructions as it is, will improve it later.

@houseroad houseroad merged commit bf9dec2 into onnx:master Sep 21, 2018
@fdwr fdwr deleted the patch-1 branch September 27, 2018 03:57
hariharans29 pushed a commit to hariharans29/onnx that referenced this pull request Aug 15, 2019
Often times new PR descriptions are light on details necessary for implementors to understand the motivation behind their addition and to correctly implement them.
jcwchen pushed a commit to jcwchen/onnx that referenced this pull request Sep 23, 2020
Often times new PR descriptions are light on details necessary for implementors to understand the motivation behind their addition and to correctly implement them.
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