Repository navigation
[CodeStyle][W291] trim trailing whitespace in NPU unittest file - #46042
Merged
luotao1 merged 8 commits intoSep 15, 2022
Merged
Conversation
|
你的PR提交成功,感谢你对开源项目的贡献! |
Collaborator
Author
|
基本所有 NPU 单测都报如下错误: 貌似是 #45541 引入的两行( Paddle/python/paddle/fluid/framework.py Lines 1172 to 1175 in 6891a4f 经过调试确实是在 try:
np_dtype == "bfloat16"
except TypeError:
print("[Catched TypeError] np_dtype: ", np_dtype, ", type: ",
type(np_dtype))
# [Catched TypeError] np_dtype: float32 , type: <class 'numpy.dtype'>疑似是 if isinstance(np_dtype, str) and np_dtype == "bfloat16":
dtype = np.uint16
else:
dtype = np.dtype(np_dtype)
# same as #46065虽然该问题解决了,但仍然有些别的问题没有解决(有三个单测报错了,log 见 log-after-fix-eq-error.log),因此暂时把所有修改都恢复了 |
Collaborator
|
请 @qili93 帮忙看下NPU的CI问题~ |
Collaborator
|
和 @qili93 @zhangbo9674 讨论了下:
|
This reverts commit b3222ad.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
Others
PR changes
Others
Describe
#45937 NPU 单测失败,因此暂时 revert 了 NPU 单测的 changes,这个 PR 用于复现和尝试修复该问题