Quick fix Lazy nn.Graph input/output OpConf.BlobConf.is_dynamic #5767
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.
单卡模式下,Lazy 也是 Consistent Graph,所以这时候把 input、output 设置 is_dynamic 标记为 true 会使得系统中一些检查过不去。这个问题的本质原因是 is_dynamic 这个标记是过时的,kernel 不需要通过 blob 的标记来判断自己要不要 infer shape,而是可以通过 parallel num > 1 来决定。未来会移除 is_dynamic 标记。此处先 quick fix 一下让 nn.Graph 构出的 job 的 input output is_dynamic 标记为 False。