From e1e3bbc2e1a385f7239fc48a6c42a4ff91fedad7 Mon Sep 17 00:00:00 2001 From: Bob Ren Date: Mon, 2 Dec 2024 19:03:08 -0800 Subject: [PATCH] Set capture_autograd_function=False by default (#141932) https://github.com/pytorch/pytorch/pull/136959 cleaned up the flag and added a warning. @Chillee pointed out that we should really default this flag to false otherwise we subject all users that go down this code path to log spew. Pull Request resolved: https://github.com/pytorch/pytorch/pull/141932 Approved by: https://github.com/jansel --- torch/_dynamo/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/torch/_dynamo/config.py b/torch/_dynamo/config.py index 139c3ec0b6d..598498adaf5 100644 --- a/torch/_dynamo/config.py +++ b/torch/_dynamo/config.py @@ -428,7 +428,7 @@ cudagraph_backend_support_input_mutation = False only_allow_pt2_compliant_ops = False # This flag is ignored and maintained for backwards compatibility. -capture_autograd_function = True +capture_autograd_function = False # This flag is ignored and maintained for backwards compatbility. capture_func_transforms = True