Fix double dispatch to Python for detach (#163671)

This fixes #71725.

Differential Revision: [D83857880](https://our.internmc.facebook.com/intern/diff/D83857880)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/163671
Approved by: https://github.com/ezyang, https://github.com/albanD
This commit is contained in:
Scott Wolchok
2025-10-12 12:55:37 -07:00
committed by PyTorch MergeBot
parent 815d641599
commit 331b7cc054
13 changed files with 60 additions and 110 deletions

View File

@ -239,9 +239,7 @@ class DTensorExportTest(TestCase):
"view_9",
"t_15",
"detach",
"detach_1",
"detach_6",
"detach_7",
"detach_3",
"threshold_backward_1",
"t_16",
"mm_6",
@ -259,10 +257,8 @@ class DTensorExportTest(TestCase):
"sum_1",
"view_7",
"t_7",
"detach_1",
"detach_2",
"detach_3",
"detach_4",
"detach_5",
"threshold_backward",
"mm_2",
"t_9",