Support fuse-deconv-and-bn (#786)

This commit is contained in:
tripleMu 2023-02-04 03:50:25 +08:00 committed by GitHub
parent fa8811dcee
commit 5a80ad98db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 33 additions and 2 deletions

View file

@ -62,6 +62,9 @@ class ConvTranspose(nn.Module):
def forward(self, x):
return self.act(self.bn(self.conv_transpose(x)))
def forward_fuse(self, x):
return self.act(self.conv_transpose(x))
class DFL(nn.Module):
# Integral module of Distribution Focal Loss (DFL) proposed in Generalized Focal Loss https://ieeexplore.ieee.org/document/9792391