-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Fix the div 0 error of matrix_power #49942
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
9e73558
add zero size check in matrix_power_kernel_impl.h
Liyulingyue 26884e9
add zero size check in matrix_power_kernel_impl.h
Liyulingyue 1b386f5
Merge remote-tracking branch 'origin/div0_1' into div0_1
Liyulingyue 75c6fc7
add zero size check in unittest
Liyulingyue 522514d
bug_fix
Liyulingyue aaf4b4c
bug_fix
Liyulingyue b5c33c6
bug_fix
Liyulingyue fe120b5
bug_fix
Liyulingyue 8092d9a
bug_fix
Liyulingyue 83d0278
bug fix
Liyulingyue 54e5484
bug_fix
Liyulingyue 5c30503
bug_fix
Liyulingyue 09926af
add static check
Liyulingyue c6091cb
delete the dy codes
Liyulingyue File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个报错可能不是ValueError。导致你的单测挂了。
你可以在本地先删掉self.assertRaises(ValueError, paddle.linalg.matrix_power, input, 2)。再跑一次单测。这时,单测肯定报错,把PADDLE_ENFORCE_NE的The size of Input(X) should not be 0.给抛出来。
你看看报错的报错类型,应该不是ValueError。是什么,你重新填到self.assertRaises里。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
查出来了~原因是这个报错出现在动态图下面