Skip to content

Commit c1d5035

Browse files
isurufpytorchmergebot
authored andcommitted
Enable C++ dynamic shape guards by default (pytorch#140756)
Pull Request resolved: pytorch#140756 Approved by: https://github.com/anijain2305 ghstack dependencies: pytorch#149149, pytorch#149197, pytorch#149211
1 parent 1843ad4 commit c1d5035

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torch/_dynamo/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@
396396
enable_cpp_guard_manager = True
397397

398398
# Use C++ guard manger for symbolic shapes
399-
enable_cpp_symbolic_shape_guards = False
399+
enable_cpp_symbolic_shape_guards = not is_fbcode()
400400

401401
# Enable tracing through contextlib.contextmanager
402402
enable_trace_contextlib = True

0 commit comments

Comments
 (0)