-
Notifications
You must be signed in to change notification settings - Fork 479
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix embedding order in EmbeddingBagCollection (#1646)
Summary: Pull Request resolved: #1646 1. The bug was introduced in D37352626 where we grouped tables by (pooling, data_type), but still used the original order for _embedding_names and _length_per_key. 1. Another bug was also introduced in D37352626 where we stacked embeddings with shape (batch, dim) along the batch dimension, but we should concat along the dim dimension. The unit tests didn't capture any of these bugs, because: 1. The numerical tolerance was too loose (1.0). This diff tightens it to 0.1. 2. The test inputs were not sufficient to trigger the bugs, e.g. the inputs only had one batch, one grouping key, and one embedding dim. Reviewed By: YazhiGao Differential Revision: D52894935 fbshipit-source-id: e4c01013c9127cc1d2ad64203e2ba9fe6fdc7f35
- Loading branch information
1 parent
be17fd7
commit b34db7d
Showing
2 changed files
with
28 additions
and
24 deletions.
There are no files selected for viewing
This file contains 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 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