Skip to content

Conversation

@pengcheng888
Copy link
Contributor

@pengcheng888 pengcheng888 commented Nov 14, 2025

目标版本
main

功能描述
根据要求,将functional.py中的函数,拆成functional文件夹中的函数

测试结果
一共5个算子,cpu+nvidia共十次测试,通过。

indices[0]
if indices.numel() > 0
else torch.tensor(len(cum_probs) - 1, device=cum_probs.device)
)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

下面挺过的变动,是ruff插件的自动格式

torch_result_from_infini = convert_infinicore_to_torch(
infini_kwargs["out"], kwargs["out"]
infini_kwargs["out"]
)
Copy link
Contributor Author

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函数的参数有删减,对应修改了一下

@pengcheng888 pengcheng888 merged commit 5028ea4 into InfiniTensor:main Nov 14, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[DEV] 根据需求,将functional.py中的函数,拆成functional文件夹中的函数

2 participants