Skip to content

Commit

Permalink
[dynamo][cpp-guard] Reland Attempt 1 - Enable cpp guard manager (pyto…
Browse files Browse the repository at this point in the history
…rch#124231)

Pull Request resolved: pytorch#124231
Approved by: https://github.com/jansel
ghstack dependencies: pytorch#124230, pytorch#124237
  • Loading branch information
anijain2305 authored and pytorchmergebot committed Apr 18, 2024
1 parent 6e86a40 commit 704fac5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torch/_dynamo/config.py
Expand Up @@ -341,7 +341,7 @@ def _get_optimize_ddp_mode():
use_numpy_random_stream = False

# Use C++ guard manager
enable_cpp_guard_manager = os.environ.get("TORCHDYNAMO_CPP_GUARD_MANAGER", "0") == "1"
enable_cpp_guard_manager = os.environ.get("TORCHDYNAMO_CPP_GUARD_MANAGER", "1") == "1"

# Inline inbuilt nn modules
inline_inbuilt_nn_modules = (
Expand Down

0 comments on commit 704fac5

Please sign in to comment.