-
Notifications
You must be signed in to change notification settings - Fork 61
issue/596 - 将functional.py中的函数,拆成functional文件夹中的函数 #597
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
Merged
+161
−128
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
80c100f to
b76b08e
Compare
pengcheng888
commented
Nov 14, 2025
| indices[0] | ||
| if indices.numel() > 0 | ||
| else torch.tensor(len(cum_probs) - 1, device=cum_probs.device) | ||
| ) |
Contributor
Author
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.
下面挺过的变动,是ruff插件的自动格式
pengcheng888
commented
Nov 14, 2025
| torch_result_from_infini = convert_infinicore_to_torch( | ||
| infini_kwargs["out"], kwargs["out"] | ||
| infini_kwargs["out"] | ||
| ) |
Contributor
Author
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.
utils中的convert_infinicore_to_torch函数的参数有删减,对应修改了一下
voltjia
reviewed
Nov 14, 2025
b76b08e to
801b4bd
Compare
9d1bb92 to
b76b08e
Compare
b76b08e to
3e8c6df
Compare
voltjia
approved these changes
Nov 14, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
目标版本
main
功能描述
根据要求,将functional.py中的函数,拆成functional文件夹中的函数
测试结果
一共5个算子,cpu+nvidia共十次测试,通过。