Skip to content

Commit 491079c

Browse files
isurufskarjala
authored andcommitted
Enable C++ dynamic shape guards by default (pytorch#140756)
Pull Request resolved: pytorch#140756 Approved by: https://github.com/anijain2305, https://github.com/laithsakka
1 parent 1e2ebc3 commit 491079c

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
@@ -398,7 +398,7 @@
398398
enable_cpp_guard_manager = True
399399

400400
# Use C++ guard manager for symbolic shapes
401-
enable_cpp_symbolic_shape_guards = False
401+
enable_cpp_symbolic_shape_guards = not is_fbcode()
402402

403403
# Enable tracing through contextlib.contextmanager
404404
enable_trace_contextlib = True

0 commit comments

Comments
 (0)