Repository navigation
[Accuracy diff No.26-27] Fix accuracy diff for paddle.linalg.(eigvals, eigvalsh) API - #429
Merged
Merged
Conversation
|
Thanks for your contribution! |
cangtianhuang
requested changes
Jul 27, 2025
| paddle.linalg.eigvals(x=Tensor([4, 4],"float64"), ) | ||
| paddle.linalg.eigvalsh(Tensor([0, 5, 5],"float32"), ) | ||
| paddle.linalg.eigvalsh(Tensor([2, 5, 5],"complex64"), ) | ||
| paddle.linalg.eigvalsh(Tensor([2, 5, 5],"float32"), ) |
Collaborator
There was a problem hiding this comment.
paddle.linalg.eigvalsh 是否也需要删除?
Contributor
Author
There was a problem hiding this comment.
改完不报错的都要删嘛,eigvalsh 改成 forword only 就可以跑过了
Collaborator
There was a problem hiding this comment.
意思是 paddle.linalg.eigvalsh 仅有反向是随机的吗?
Contributor
Author
There was a problem hiding this comment.
是的是的,api 前向只输出特征值,不会输出特征向量,算子前向第二个输出是随机,和 eigh 一样
…eigvals_eigvalsh
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
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.
eigvals 返回的是未排序的特征值,具有随机性,ci_ce 中的配置都存在于 random_calculation.txt 中,所以删除 report 中内容

eigvalsh 在计算反向时,同 eigh #276 一样会使用特征向量,特征向量不唯一,同步设置 forward。生成 numpy 数据同 eigh
