Skip to content

Commit 80534ac

Browse files
committed
gradcheck will fail if input is modified in place.
1 parent c6eba49 commit 80534ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/torchaudio_unittest/rnnt/autograd_impl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def test_RNNTLoss_gradcheck(self, data_func):
5656
data["logit_lengths"],
5757
data["target_lengths"],
5858
)
59-
loss = RNNTLoss(blank=data["blank"])
59+
loss = RNNTLoss(blank=data["blank"], reuse_logits_for_grads=False)
6060

6161
self.assert_grad(loss, inputs, enable_all_grad=False)
6262

0 commit comments

Comments
 (0)