SiLU doesnt support inplace

This commit is contained in:
James Betker 2020-09-23 21:09:13 -06:00
parent eda0eadba2
commit 9a50a7966d

View File

@ -433,7 +433,7 @@ class ResBlock(nn.Module):
self.downsample = ConvGnSilu(nf, nf_out, kernel_size=1, stride=stride, bias=False, activation=False, norm=True)
else:
self.downsample = None
self.act = SiLU(inplace=True)
self.act = SiLU()
def forward(self, x):
identity = x