[Accuracy diff No.119、145] Fix accuracy diff for paddle.nn.functional.gaussian_nll_loss、paddle.Tensor.fill_diagonal_tensor API #272
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.
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 中提取并仅比较第一个梯度
修改后,全部配置通过 accuracy.py 测试:
