modify dict include none to aviod pir dytostatic bug in while op #8898
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
pcard-67164
pir 下while op 要求输入和输出都是类型相同的value, 此处model_kwargs 作为while 的输入是一个dict ,dict 中包含了为none 的数据,while 无法支持,因此需要根据其是否为none 判断是否要加入dict中。 当这些参数为none时,sample 函数中不会使用到,因此不会对程序正确性产生影响