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
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 请评审~