Skip to content
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

修复使用norm时len(axis)=2且p!=None的情况 #182

Merged
merged 1 commit into from
Feb 5, 2024

Conversation

zbt78
Copy link
Contributor

@zbt78 zbt78 commented Feb 4, 2024

PR types

Bug fixes

PR changes

Models

Description

norm中len(axis)=2且p!=None时原先计算的是向量范数,norm升级后出现不兼容,现在直接调用paddle.linalg.vector_norm实现相应功能。

@Bobholamovic
Copy link
Member

LGTM. 感谢贡献~

@Bobholamovic Bobholamovic merged commit f62b46f into PaddlePaddle:develop Feb 5, 2024
1 of 3 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.

2 participants