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
This commit is contained in:
Bob Ren 2024-12-02 19:03:08 -08:00 committed by PyTorch MergeBot
parent e499b46465
commit e1e3bbc2e1

View file

@ -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