Skip to content

Commit cad4679

Browse files
Update constructor args supplying too few parameters
This is a prerequisite for pytorch/pytorch#162340. The CI pin will be reverted before merge.
1 parent ab5fb84 commit cad4679

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
53a2908a10f414a2f85caa06703a26a40e873869
1+
gh/benjaminglass1/106/orig

backends/apple/mps/test/test_mps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1522,7 +1522,7 @@ def test_mps_backend_constant_pad_nd(self):
15221522
class PadModule(torch.nn.Module):
15231523
def __init__(self):
15241524
super().__init__()
1525-
self.constant_pad = torch.nn.ConstantPad2d((1, 2), 0)
1525+
self.constant_pad = torch.nn.ConstantPad2d((1, 2, 0, 0), 0)
15261526

15271527
def forward(self, x):
15281528
return self.constant_pad(x)

backends/xnnpack/test/ops/test_static_constant_pad.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def forward(self, x, y, z):
105105
class StaticConstantPad2d(torch.nn.Module):
106106
def __init__(self):
107107
super().__init__()
108-
self.pad = torch.nn.ConstantPad2d([1, 2, 3, 4], 2.3)
108+
self.pad = torch.nn.ConstantPad2d((1, 2, 3, 4), 2.3)
109109

110110
def forward(self, x):
111111
y = self.pad(x)

0 commit comments

Comments
 (0)