You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary:
Pull Request resolved: #2388
# context
* [post](https://fb.workplace.com/groups/1028545332188949/permalink/1042204770823005/)
* this test case mimics the EBC key-order change after sharding
{F1864056306}
# details
* it's a very simple model: EBC ---> KTRegroupAsDict
* we generate two EBCs: ebc1 and ebc2, such that the table orders are different:
```
ebc1 = EmbeddingBagCollection(
tables=[tb1_config, tb2_config, tb3_config],
is_weighted=False,
)
ebc2 = EmbeddingBagCollection(
tables=[tb1_config, tb3_config, tb2_config],
is_weighted=False,
)
```
* we export the model with ebc1 and unflatten the model, and then swap with ebc2 (you can think this as the the sharding process resulting a shardedEBC), so that we can mimic the key-order change as shown in the above graph
* the test checks the final results after KTRegroupAsDict are consistent with the original eager model
Reviewed By: PaulZhang12
Differential Revision: D62604419
0 commit comments