[Dy2St] Fix test_seq2seq
can not switch SOT and AST mode
#59058
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 types
Bug fixes
PR changes
Others
Description
test_seq2seq
无法切换 SOT 和 AST 模式,导致全部跑在了 SOT 模式,而 SOT 模式 Cache 一直不命中,就非常慢,导致随机 TIMEOUT 的问题_to_static_mode_guard_
内报错时无法正常切换回非动转静模式,导致动态图走错分支的问题同时摸底本单测的最终态问题,目前挂在 API
paddle.nn.functional.sequence_mask
尚不支持,该任务为 #58067 202 题PCard-66972