Skip to content

Commit d50cc53

Browse files
committed
Update on "Actually run backward criterion tests."
This looks to have been a mistake from #9287. Differential Revision: [D23476274](https://our.internmc.facebook.com/intern/diff/D23476274) [ghstack-poisoned]
1 parent c82eb4a commit d50cc53

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

torch/testing/_internal/common_nn.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4373,6 +4373,7 @@ def padding3d_circular(input, pad):
43734373
reference_fn=lambda i, t, il, tl, m:
43744374
ctcloss_reference(i, t, il, tl, blank=14, reduction=get_reduction(m)),
43754375
desc='lengths_intlists',
4376+
check_forward_only=True,
43764377
check_sum_reduction=True,
43774378
check_gradgrad=False,
43784379
check_half=False,
@@ -4403,6 +4404,7 @@ def padding3d_circular(input, pad):
44034404
reference_fn=lambda i, t, il, tl, m:
44044405
ctcloss_reference(i, t, il, tl, blank=14, reduction=get_reduction(m)),
44054406
desc='lengths_tensors',
4407+
check_forward_only=True,
44064408
check_sum_reduction=True,
44074409
check_gradgrad=False,
44084410
check_half=False,
@@ -4431,6 +4433,7 @@ def padding3d_circular(input, pad):
44314433
target_fn=lambda: torch.randint(1, 15, (3, 30), dtype=torch.int),
44324434
reference_fn=lambda i, t, il, tl, m:
44334435
ctcloss_reference(i, t, il, tl, blank=0, reduction=get_reduction(m)),
4436+
check_forward_only=True,
44344437
check_sum_reduction=True,
44354438
check_gradgrad=False,
44364439
check_half=False,
@@ -4448,6 +4451,7 @@ def padding3d_circular(input, pad):
44484451
target_fn=lambda: torch.randint(1, 15, (3, 30), dtype=torch.int),
44494452
reference_fn=lambda i, t, il, tl, m:
44504453
ctcloss_reference(i, t, il, tl, blank=0, reduction=get_reduction(m)),
4454+
check_forward_only=True,
44514455
check_sum_reduction=True,
44524456
check_gradgrad=False,
44534457
check_half=False,
@@ -4463,6 +4467,7 @@ def padding3d_circular(input, pad):
44634467
target_fn=lambda: torch.randint(1, 15, (3, 30), dtype=torch.int),
44644468
reference_fn=lambda i, t, il, tl, m:
44654469
ctcloss_reference(i, t, il, tl, blank=0, reduction=get_reduction(m)),
4470+
check_forward_only=True,
44664471
check_sum_reduction=True,
44674472
check_gradgrad=False,
44684473
check_half=False,

0 commit comments

Comments
 (0)