Skip to content

Commit 58267d4

Browse files
eqypytorchmergebot
authored andcommitted
lint
1 parent 3447570 commit 58267d4

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/nn/test_convolution.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4057,8 +4057,12 @@ def test_conv3d_64bit_indexing(self, device):
40574057
@largeTensorTest("20GB")
40584058
@largeTensorTest("80GB", "cpu")
40594059
def test_depthwise_conv_64bit_indexing(self, device):
4060-
x = torch.randn(1, 2, 32800, 32800, dtype=torch.bfloat16).to(memory_format=torch.channels_last)
4061-
c = nn.Conv2d(2, 2, kernel_size=3, stride=1, padding=1, groups=2, dtype=torch.bfloat16).to(memory_format=torch.channels_last)
4060+
x = torch.randn(1, 2, 32800, 32800, dtype=torch.bfloat16).to(
4061+
memory_format=torch.channels_last
4062+
)
4063+
c = nn.Conv2d(
4064+
2, 2, kernel_size=3, stride=1, padding=1, groups=2, dtype=torch.bfloat16
4065+
).to(memory_format=torch.channels_last)
40624066
yref = c(x)
40634067
y = c.to(device=device)(x.to(device=device))
40644068
self.assertEqual(yref, y, atol=1e-3, rtol=1e-4)

0 commit comments

Comments
 (0)