Skip to content

Commit 0095571

Browse files
anijain2305pytorchmergebot
authored andcommitted
[AOT Autograd] Redirect named_parameters to original mod (pytorch#84157)
Helps in comparing accuracy. Pull Request resolved: pytorch#84157 Approved by: https://github.com/Chillee
1 parent 3f94726 commit 0095571

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

functorch/functorch/_src/aot_autograd.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -892,6 +892,7 @@ def forward(*args):
892892
)
893893

894894
forward.zero_grad = mod.zero_grad
895+
forward.named_parameters = mod.named_parameters
895896
return forward
896897

897898

0 commit comments

Comments
 (0)