-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Fix convert directive #55811
Fix convert directive #55811
Conversation
… fix_convert_directive
你的PR提交成功,感谢你对开源项目的贡献! |
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~
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
太牛了顺师傅 @megemini
PR types
Others
PR changes
Others
Description
修改
directive_patthern
,能够转换含有描述的# doctest: +SKIP('XXX')
patch xdoctest : tensor place 能够转换 Tensor 的 place,如:
转换为
patch xdoctest : float precision 将输出(got/want)中的数字进行统一的 round(默认digits=5),如
与
表示一致。
这里没有使用 https://github.com/boisgera/numtest/blob/2.x/numtest/__init__.py 的方法,
numtest
使用了一种近似方法,可以把3.1
与3.14
表示为一致。而这里修改的目的是兼容不同设备 float 的精度问题,所以统一使用 round 方法,并且兼容 complex。不需要额外的 directive。修改
print_summary
使其打印输出nocodes
的接口。修改
uniform.py
用于验证修改后的 CI 正确性。@SigureMo 请评审~