Skip to content
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 lac calculation precision #962

Merged
merged 3 commits into from
Sep 2, 2021

Conversation

joey12300
Copy link
Contributor

PR types

Bug fixes

PR changes

Models

Description

fix lac calculation precision

gather_idx = batch_offset + last_ids
tag_mask = paddle.cast((left_length >= zeros), 'int64')
tag_mask = paddle.cast((left_length >= 0), 'int64')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

验证一下动转静

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Copy link
Collaborator

@wawltor wawltor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@joey12300 joey12300 merged commit 0a73469 into PaddlePaddle:develop Sep 2, 2021
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.

None yet

2 participants