Skip to content

Do not apply fp16 to certain key returned by Dataset #13866

Discussion options

You must be logged in to vote

I just found out that this happened because I tried to stack float16 doc_id with float32 loss to a single tensor. The doc_id values were actually correct in validation_step, it was corrupted when the stack operation was applied.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@MattYoon
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by MattYoon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data handling Generic data-related topic precision: amp Automatic Mixed Precision
2 participants