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: e55402434e154600fb7f38b4bf6a4163b567aa94
Pull Request resolved: #125202
  • Loading branch information
anijain2305 committed Apr 30, 2024
1 parent 5418822 commit 607f5a8
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 607f5a8

Please sign in to comment.