We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e43392 commit e337762Copy full SHA for e337762
efficientnet/utils_extra.py
@@ -80,7 +80,7 @@ def forward(self, x):
80
top = extra_v // 2
81
bottom = extra_v - top
82
83
- x = F.pad(x, [left, right, top, bottom])
+ x = F.pad(x, [left, right, top, bottom], value=-float("inf"))
84
85
x = self.pool(x)
86
return x
0 commit comments