update zeropad

This commit is contained in:
li-xl 2021-03-11 16:08:52 +08:00
parent 36e7acfc1f
commit 9b67168f18
1 changed files with 1 additions and 1 deletions

View File

@ -849,7 +849,7 @@ class ZeroPad2d(Module):
self.pr = self.padding
self.pt = self.padding
self.pb = self.padding
elif isinstance(self.padding, tuple):
elif isinstance(self.padding, (tuple,list)):
self.pl, self.pr, self.pt, self.pb = self.padding
else:
raise TypeError(f"ZeroPad2d padding just support int or tuple, but found {type(padding)}")