Skip to content

Conversation

@cangtianhuang
Copy link
Collaborator

PR Category

Accuracy diff

PR types

Improvements

Description

查看 error_log ,发现是 grads diff,paddle.nn.functional.gaussian_nll_loss、paddle.Tensor.fill_diagonal_tensor 均不会对第二个 Tensor 求梯度,因此在 accuracy.py 中提取并仅比较第一个梯度

paddle_out_grads = paddle_out_grads[0]
torch_out_grads = torch_out_grads[0]

修改后,全部配置通过 accuracy.py 测试:
image

@cangtianhuang cangtianhuang merged commit af17ee6 into PFCCLab:main Jun 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants