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 dtype issue in TF BART #15178

Merged
merged 1 commit into from
Jan 17, 2022
Merged

Fix dtype issue in TF BART #15178

merged 1 commit into from
Jan 17, 2022

Conversation

Rocketknight1
Copy link
Member

Fixes an issue in BART caused by implicit casting of Python ints to tf.int32, when other inputs are tf.int64. We usually get away with this, but tf.where() requires both inputs to have the same dtype.

Copy link
Collaborator

@sgugger sgugger left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for fixing!

@Rocketknight1 Rocketknight1 merged commit 9a2daba into master Jan 17, 2022
@Rocketknight1 Rocketknight1 deleted the bart_fix branch January 17, 2022 14:02
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