F.embedding_bag(..., mode='max')
yields different results than PyTorch eager.
#7588
Labels
F.embedding_bag(..., mode='max')
yields different results than PyTorch eager.
#7588
🐛 Bug
Running the script bellow yields in an
AssertionError
. This issue occurs only whenrequires_grad=False
, which triggers the execution of_embedding_bag_forward_only
.Expected behavior
Results should be close.
Environment
Additional context
Upon further inspection, it feels like the issue has something to do with negative numbers. Wherever there was supposed to be a negative value in the output, I see it getting truncated to 0.
cc @miladm @JackCaoG @bhavya01
The text was updated successfully, but these errors were encountered: