Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR types
New features
PR changes
Others
Describe
我们在pass 增强专项中,对相关op的属性进行了分类,分成了def和extra两类。分类相关详见pr #33098 。分类的结果是以一大堆以op名字命名的pbtxt文件进行存储。(@[email protected])。
这部分@[email protected] 文件会在pass执行的时候进行读取,为了维持动态库的简单性,必须将这部分pbtxt文件打包到动态库内部。
本pr提供的功能是:在编译时,将所有的@[email protected]文件拷贝到一个cc文件中,将其内容转换成一个静态字符串对象,方便动态库在pass执行时直接解析。