Skip to content

Commit

Permalink
suppress errors in torchrec
Browse files Browse the repository at this point in the history
Differential Revision: D53166035
  • Loading branch information
Pyre Bot Jr authored and facebook-github-bot committed Jan 29, 2024
1 parent 4376dff commit 9f519fb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions torchrec/distributed/quant_embedding.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,8 @@ def _construct_jagged_tensors_cw(
for i in range(len(features)):
embedding = embeddings[i]
feature = features[i]
# pyre-fixme[6]: For 1st argument expected `List[Tensor]` but got
# `Tuple[Tensor, ...]`.
lengths_lists.append(torch.unbind(feature.lengths().view(-1, stride), dim=0))
embeddings_lists.append(
list(torch.split(embedding, feature.length_per_key(), dim=0))
Expand Down

0 comments on commit 9f519fb

Please sign in to comment.