Skip to content

Commit

Permalink
expose option to collect sizes as dynamic (#141153)
Browse files Browse the repository at this point in the history
Summary:
X-link: pytorch/torchrec#2594

This is to address recompiles from eager nodes that saved dynamic activations

X-link: pytorch/pytorch#141153
Approved by: https://github.com/jansel
ghstack dependencies: #141152

Reviewed By: izaitsevfb

Differential Revision: D66384254

Pulled By: xmfan

fbshipit-source-id: 89d439353219252c9f5be0b44cf67957092860e3
  • Loading branch information
xmfan authored and facebook-github-bot committed Nov 26, 2024
1 parent c57be06 commit 5c7b91e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion userbenchmark/dynamo/dynamobench/_dynamo/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3369,7 +3369,7 @@ def inner_compiler(gm_, example_inputs_):
gm, backend=inner_compiler, fullgraph=fullgraph, dynamic=dynamic
)

with torch._dynamo.compiled_autograd.enable(compiler_fn) as ctx:
with torch._dynamo.compiled_autograd._enable(compiler_fn) as ctx:
yield ctx


Expand Down

0 comments on commit 5c7b91e

Please sign in to comment.