Skip to content

Commit

Permalink
[DONT MERGE][FOR CI][dynamo] Turn on guard_nn_modules
Browse files Browse the repository at this point in the history
ghstack-source-id: b2f84384af12e0c81b22e8ade7883fb2418a4aeb
Pull Request resolved: pytorch#125202
  • Loading branch information
anijain2305 committed May 8, 2024
1 parent faf0015 commit 3423dee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torch/_dynamo/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
allow_ignore_mark_dynamic = False

# Set this to False to assume nn.Modules() contents are immutable (similar assumption as freezing)
guard_nn_modules = False
guard_nn_modules = True

# Uses CPython internal dictionary tags to detect mutation. There is some
# overlap between guard_nn_modules_using_dict_tags and guard_nn_modules flag.
Expand Down

0 comments on commit 3423dee

Please sign in to comment.