torchrec icon indicating copy to clipboard operation
torchrec copied to clipboard

Make LazyAwaitable wait_async dynamo traceable

Open IvanKobzarev opened this issue 1 year ago • 1 comments

Summary: Clients requested to be able to call directly LazyAwaitable._wait_async(a) under compiled region.

LazyAwaitable.wait_async uses torch.fx.node.map_aggregate which is skipped by dynamo => copied inside torchrec, changed immutable_list -> list, immutable_dict -> dict (immutable versions were failing in dynamo).

Using only for compiled path, not to break any BC on eager path.

Differential Revision: D59113305

IvanKobzarev avatar Jun 27 '24 14:06 IvanKobzarev

This pull request was exported from Phabricator. Differential Revision: D59113305

facebook-github-bot avatar Jun 27 '24 14:06 facebook-github-bot