8000 Update base for Update on "Remove det_singular OpInfo" · pytorch/pytorch@c256871 · GitHub
[go: up one dir, main page]

Skip to content

Commit c256871

Browse files
committed
Update base for Update on "Remove det_singular OpInfo"
Fixes #93045 #93044 From previous discussion #93045 (comment) the resolution is that we're okay with removing this. Some older attempts: - #102581 - #109249 cc H-Huang awgu kwen2501 wanchaol fegin fduwjj wz337 wconstab d4l3k c-p-i-o voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy yf225 chenyang78 kadeng muchulee8 ColinPeppler amjames desertfire chauhang aakhundov [ghstack-poisoned]
1 parent 8dbd7b2 commit c256871

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/test_autograd.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12467,15 +12467,16 @@ def test_disallow_nesting(self):
1246712467
def test_inplace_foreach(self):
1246812468
with torch.autograd.graph.allow_mutation_on_saved_tensors():
1246912469
a = [
12470-
torch.tensor(1., requires_grad=True),
12471-
torch.tensor(1., requires_grad=True)
12470+
torch.tensor(1.0, requires_grad=True),
12471+
torch.tensor(1.0, requires_grad=True),
1247212472
]
1247312473
b = torch._foreach_exp(a)
1247412474
torch._foreach_add_(b, 1)
1247512475
(b[0] + b[1]).backward()
1247612476

1247712477
self.assertEqual([a[0].grad, a[1].grad], torch._foreach_exp(a))
1247812478

12479+
1247912480
class TestAutogradInferenceMode(TestCase):
1248012481
def _is_inference_tensor(self, tensor):
1248112482
try:

0 commit comments

Comments
 (0)
0