-
Notifications
You must be signed in to change notification settings - Fork 5.9k
[API] Support zero_infinity in ctc_loss
#75742
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
Merged
Merged
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
eb6724f
feat: ctc_loss.zero_infinity
aztice 48f9719
fix: code-style issue.
aztice e6d76e0
fix: code-style issue.
aztice e85ceb1
optimize: reduce calculation
aztice fbffc8b
fix: code-style issue.
aztice 5179ca5
feat: test_warpctc_zero_infinity
aztice b37acdd
fix: code-style issue.
aztice 948b74e
fix: code-style issue.
aztice 86f5315
fix: zero_infinity for ctc_loss
aztice 417dc59
fix: code-style issue.
aztice 5d06635
fix: code-style issue.
aztice 7d6f730
feat: ctcloss.zero_infinity
aztice df49adc
fix: docs issue.
aztice 4d1dab9
fix: error
aztice 34c51b0
fix: code-style issue.
aztice 068f8a1
fix: errors
aztice 480eb12
Fix loss output handling for zero_infinity case
aztice 2e52ae9
fix: errors
aztice a7e9cc2
Replace zeros_like with full_like for loss output
aztice 41279be
Refactor handling of infinite loss values
aztice d142222
Improve readability of loss_out assignment
aztice f5a8a75
Fix paddle.where parameters in loss function
aztice 8573e56
Remove test_ctc_loss_zero_infinity function
aztice a4034d7
Add tests for CTC loss with zero_infinity
aztice 2f0af5a
Format labels_np initialization for readability
aztice 3f132ca
Refactor string literals and improve formatting
aztice 6e0cc73
Improve code formatting in test_warpctc_op.py
aztice 6c7c51a
Refactor static_graph context manager usage
aztice fe2834a
Use fixed seed value in static_graph context manager
aztice 0ca8eb1
Refactor static graph usage in CTC loss test
aztice a49b6bc
Refactor CTC loss test to use program guard
aztice 7b7decb
Remove unused import in test_warpctc_op.py
aztice 4912b43
Enable and disable static mode in warpctc test
aztice f2b9f30
Update test/legacy_test/test_warpctc_op.py
aztice 66a8efd
Replace assertTrue with assert_allclose in tests
aztice 53b643e
Update test/legacy_test/test_warpctc_op.py
SigureMo 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 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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.