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
[Tracking] Eliminate duplicate string in operator document to prevent binary size increasing #4138
Comments
It is still open? |
Thanks for catching this. Yes, it is still open and anyone interested feel free to pick this up. |
Can you give some more insights where what needs to be changed. bit explanation will help me understand the task better.
|
Sure. Thanks for your interest. Typically operators in different opset_versions have duplicate string, which can be found from Lines 5002 to 5016 in b8482d7
and Lines 367 to 374 in b8482d7
The documents are very similar and only have few different sentences. Ideally we should make the duplicate part as a common string. You can directly modify the C++ files (defs.cc or old.cc). |
OKay Got it. |
Feature Request
System information
ONNX version (you are using): 1.11
What is the problem that this feature solves?
Prevent binary size increasing.
Describe the feature
While bumping version for certain operator, currently people just created another string for the new document for the new version. Sometimes the document is very similar to previous document with few additional sentences or even is exactly the same as the previous one (for instance, add more type support does not influence the document content). It's a potential issue for binary size increasing if ONNX keeps using different string for the same/similar content. Also, using the same string is easier to maintain if we would like to update the same content for different versions. We should go through all operators under all defs.cc and old.cc to fix this. Open this issue to track this work item.
Furthermore, going forward we should try our best to share the string when bumping versions.
Will this influence the current api?
No
Feature Area
Package binary size.
Are you willing to contribute it (Y/N):
Y
The text was updated successfully, but these errors were encountered: