Skip to content

Commit eaef613

Browse files
recnWEIdia
authored andcommitted
Fix issue with test/nn/test_convolution:TestConvolutionNNDeviceTypeCUDA.test_conv_large_batch_1_cuda (pytorch#145067)
Pull Request resolved: pytorch#145067 Approved by: https://github.com/Skylion007, https://github.com/nWEIdia Co-authored-by: Wei Wang <[email protected]>
1 parent 0eda02a commit eaef613

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/nn/test_convolution.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3246,6 +3246,7 @@ def test_conv_large_batch_1(self, device):
32463246
.half()
32473247
)
32483248
output = model(input_tensor)
3249+
_model_cpu = model.cpu().float()
32493250
output_cpu = model(input_tensor.float().cpu())
32503251
self.assertEqual(output.cpu().float(), output_cpu, atol=1e-3, rtol=1e-3)
32513252

0 commit comments

Comments
 (0)