Skip to content

Commit 0873e19

Browse files
Xia-Weiwenmalfet
andauthored
Update test/nn/test_convolution.py per reviewer's comment
Co-authored-by: Nikita Shulga <2453524+malfet@users.noreply.github.com>
1 parent 5511a6a commit 0873e19

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/nn/test_convolution.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,7 @@ def _test_conv2d(stride, kernel_size, groups, dilation):
845845

846846
def test_permute_conv2d_issue_120211(self):
847847
def reproducer(radius: int):
848-
image = torch.rand([1, 1024, 1024, 3], dtype=torch.float32, device=torch.device('cpu'))
848+
image = torch.rand(1, 1024, 1024, 3)
849849
image = image.permute(0, 3, 1, 2)
850850
kernel_x = torch.zeros([3, 1, 1, radius * 2 + 1], device=image.device)
851851
image = torch.nn.functional.conv2d(image, kernel_x, groups=image.shape[-3])

0 commit comments

Comments
 (0)