-
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][C-80, C-86] Add type annotations for python/paddle/incubate/{nn/functional/variable_length_memory_efficient_attention, operators/graph_khop_sampler}.py
#67197
Conversation
…al/variable_length_memory_efficient_attention.py`
…al/variable_length_memory_efficient_attention.py
…al/variable_length_memory_efficient_attention.py
…aph_khop_sampler.py`
你的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.
@SigureMo paddle.incubate.graph_khop_sampler
示例跑不通 ... ...
colptr: Tensor, | ||
input_nodes: Tensor, | ||
sample_sizes: list[int] | tuple[int, ...], | ||
sorted_eids: Tensor | None = None, |
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.
sorted_eids: Tensor | None = None, | |
sorted_eids: Tensor | None = ..., |
colptr: Tensor, | ||
input_nodes: Tensor, | ||
sample_sizes: list[int] | tuple[int, ...], | ||
sorted_eids: Tensor | None = None, |
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.
sorted_eids: Tensor | None = None, | |
sorted_eids: Tensor | None = ..., |
colptr: Tensor, | ||
input_nodes: Tensor, | ||
sample_sizes: list[int] | tuple[int, ...], | ||
sorted_eids: Tensor | None = None, |
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.
sorted_eids: Tensor | None = None, | |
sorted_eids: Tensor | None = ..., |
…raph_khop_sampler.py`
…raph_khop_sampler.py`
@inaomIIsfarell 示例跑不通,skip 吧,理由写 |
python/paddle/inbucate/{nn/functional/variable_length_memory_efficient_attention, operators/graph_khop_sampler}.py
python/paddle/incubate/{nn/functional/variable_length_memory_efficient_attention, operators/graph_khop_sampler}.py
…ors/graph_khop_sampler.py`
…ctional/variable_length_memory_efficient_attention.py`
…ctional/variable_length_memory_efficient_attention.py`
…ors/graph_khop_sampler.py`
|
||
Examples: | ||
.. code-block:: python | ||
|
||
>>> # doctest: +REQUIRES(env:GPU) | ||
>>> # doctest: +SKIP('Number of sample edges dismatch, the sample kernel has error.') |
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.
这个用例不需要
…ctional/variable_length_memory_efficient_attention.py`
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 ~
@inaomIIsfarell 一般来说,不需要修改原代码里面的内容,variable_length_memory_efficient_attention.py
示例里面原来有 >>> # doctest: +REQUIRES(env:GPU)
,这里给删掉了 ... ... 不过,CI 过了,应该不影响,后面注意一下哈 ~ 🤟
sry......删多了 |
…al/variable_length_memory_efficient_attention.py`
PR Category
User Experience
PR Types
Improvements
Description
类型标注:
Related links
@SigureMo @megemini