Skip to content
This repository was archived by the owner on Aug 1, 2025. It is now read-only.
This repository was archived by the owner on Aug 1, 2025. It is now read-only.

Dynamo does a lot of unnecessary input cloning for real_value_cache, even if cache is not used #1950

@ezyang

Description

@ezyang

🐛 Describe the bug

            proxy.tracer.real_value_cache[proxy.node] = _clone_input(example_value)

in torch/_dynamo/variables/builder.py is ALWAYS run, even if the real_value_cache is not used at all

Error logs

No response

Minified repro

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions