【PIR】modify segment_fault of Swintransformer model #69036
Merged
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 Category
Execute Infrastructure
PR Types
Bug fixes
Description
pcard-67164
swin_transformer 模型在pir 模式下多次调用save 会出现segment fault报错, 每次报错的位置随机。
原因是set_value的接口涉及到动转静inplace_map的写, inplace_map 是全局的,按照program 为key, value_dict 为value 记录inplace 关系,但是inplace_map add 的传参是default_main_program() 一直是老ir 的program。