-
Couldn't load subscription status.
- Fork 80
[API Compatibility] Add cuda.XXX to NONEED_CONVERT #739
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
Conversation
|
Thanks for your contribution! |
tests/test_get_device.py
Outdated
| obj.run( | ||
| pytorch_code, | ||
| ["result"], | ||
| check_stop_gradient=False, |
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.
这个返回应该是一个int,应该不用设置check_stop_gradient?
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.
是的,我删去
tests/test_cuda_Event.py
Outdated
| rtol=1.0e-6, | ||
| atol=0.0, | ||
| ): | ||
| assert pytorch_result == paddle_result or isinstance( |
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.
torch返回的类型也可以判断一下
assert isinstance(torch_result,
assert isinstance(paddle_result,
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.
好的
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 Docs
PR APIs