-
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
[Typing][B-31,B-32] Add type annotations for python/paddle/device/{cuda/__init__,xpu/__init__}.py
#66090
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
@@ -19,6 +24,15 @@ | |||
|
|||
from .streams import Event, Stream | |||
|
|||
if TYPE_CHECKING: | |||
from paddle import CUDAPlace | |||
from paddle.base.libpaddle._gpuDeviceProperties import _gpuDeviceProperties |
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.
确认下,这个运行时可以 import 么?确认有两个 _gpuDeviceProperties
么?
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.
…uda/__init__,xpu/__init__}.py` (PaddlePaddle#66090) --------- Co-authored-by: SigureMo <[email protected]>
…uda/__init__,xpu/__init__}.py` (PaddlePaddle#66090) --------- Co-authored-by: SigureMo <[email protected]>
PR Category
User Experience
PR Types
Improvements
Description
B31 B32