-
Notifications
You must be signed in to change notification settings - Fork 5.8k
[CodeStyle][W291] trim trailing whitespace in NPU unittest file #46042
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CodeStyle][W291] trim trailing whitespace in NPU unittest file #46042
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
基本所有 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),因此暂时把所有修改都恢复了 |
请 @qili93 帮忙看下NPU的CI问题~ |
和 @qili93 @zhangbo9674 讨论了下:
|
This reverts commit b3222ad.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
PR types
Others
PR changes
Others
Describe
#45937 NPU 单测失败,因此暂时 revert 了 NPU 单测的 changes,这个 PR 用于复现和尝试修复该问题