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.
expand前向和后向传播类型不一致的bug修复 同时添加类型检查
需求描述:
1、expand的前向和后向注册的dtype kernel不一致
2、期望加入规范,并且增加排查,如果特殊的可以单独说明
3、报错信息用户:该问题报错信息只能内部研发才能看得出原因,不利用用户自己排查问题
需求来源:
· 链接:#19878
· 问题:optimizer.minimize(avg_cost)无法反向传播
· 解答:maxdisp, mask_sum这些设置stop_gradient=True试下