Skip to content

Commit 5e7d32a

Browse files
joshuadengfacebook-github-bot
authored andcommitted
add lazy getitem to vle and ebc vbe awaitables
Summary: defer wait for lazy awaitable to after result of `__getitem__` is used Differential Revision: D55765164
1 parent 4020e16 commit 5e7d32a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

torchrec/distributed/embeddingbag.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,9 @@ def construct_output_kt(
309309
)
310310

311311

312-
class VariableBatchEmbeddingBagCollectionAwaitable(LazyAwaitable[KeyedTensor]):
312+
class VariableBatchEmbeddingBagCollectionAwaitable(
313+
LazyGetItemMixin[str, torch.Tensor], LazyAwaitable[KeyedTensor]
314+
):
313315
def __init__(
314316
self,
315317
awaitables: List[Awaitable[torch.Tensor]],

0 commit comments

Comments
 (0)