Skip to content

Conversation

@xilzy
Copy link
Contributor

@xilzy xilzy commented Nov 8, 2025

Description

函数用于将 FX 计算图中的不稳定 API torch._C._linalg.linalg_vector_norm 替换为 PyTorch 官方稳定的 torch.linalg.vector_norm。该方法会遍历所有相关节点并完成替换,随后重新编译计算图,确保模型在编译和运行时只调用稳定接口。
4519db596e703a6465195b62b5d4ecd1

@paddle-bot
Copy link

paddle-bot bot commented Nov 8, 2025

Thanks for your contribution!

@paddle-bot paddle-bot bot added the contributor External developers label Nov 8, 2025
@lixinqi
Copy link
Collaborator

lixinqi commented Nov 9, 2025

这里速度掉得有点多,应该先深入分析一下再合入。

@lixinqi
Copy link
Collaborator

lixinqi commented Nov 9, 2025

https://github.com/PaddlePaddle/GraphNet/pull/347这个 pr 反而大幅提升了性能。可以参考一下

@xilzy
Copy link
Contributor Author

xilzy commented Nov 10, 2025

https://github.com/PaddlePaddle/GraphNet/pull/347这个 pr 反而大幅提升了性能。可以参考一下

image 参考修改之后,速度反而掉的更多了 0a71d19a4191757861a5fc17443bd83f

@luotao1
Copy link
Collaborator

luotao1 commented Nov 10, 2025

请解决冲突

@lixinqi
Copy link
Collaborator

lixinqi commented Nov 10, 2025

#352 请按照这个 pr 的要求改动代码,减少合入冲突。

@xilzy xilzy force-pushed the Hackathon_9th_No_116 branch from 8197223 to c404281 Compare November 10, 2025 08:44
@luotao1 luotao1 merged commit a828505 into PaddlePaddle:develop Nov 12, 2025
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants