Skip to content

Commit

Permalink
Fix 'get_attr' call in dynamo 'run_node' (#127696)
Browse files Browse the repository at this point in the history
Summary:
Fixes #124858

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

Reviewed By: clee2000

Differential Revision: D58443876

fbshipit-source-id: 87cccfb8ed74a6cfb3d3376b49fc84831c940c1e
  • Loading branch information
BowenBao authored and facebook-github-bot committed Jun 12, 2024
1 parent 2a573fe commit 2553812
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 @@ -1906,7 +1906,7 @@ def make_error_message(e):
assert nnmodule is not None
return nnmodule(*args, **kwargs)
elif op == "get_attr":
return tracer.get_submodule(node.target)
return tracer.output_graph.get_submodule(node.target)
elif op == "placeholder":
assert "example_value" in node.meta
return node.meta["example_value"]
Expand Down

0 comments on commit 2553812

Please sign in to comment.