PyUpgrade 3.8 updates (#15941)
Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
This commit is contained in:
parent
ea13dc6208
commit
9ec8e9acbf
13 changed files with 25 additions and 25 deletions
|
|
@ -672,7 +672,7 @@ class CBLinear(nn.Module):
|
|||
|
||||
def __init__(self, c1, c2s, k=1, s=1, p=None, g=1):
|
||||
"""Initializes the CBLinear module, passing inputs unchanged."""
|
||||
super(CBLinear, self).__init__()
|
||||
super().__init__()
|
||||
self.c2s = c2s
|
||||
self.conv = nn.Conv2d(c1, sum(c2s), k, s, autopad(k, p), groups=g, bias=True)
|
||||
|
||||
|
|
@ -686,7 +686,7 @@ class CBFuse(nn.Module):
|
|||
|
||||
def __init__(self, idx):
|
||||
"""Initializes CBFuse module with layer index for selective feature fusion."""
|
||||
super(CBFuse, self).__init__()
|
||||
super().__init__()
|
||||
self.idx = idx
|
||||
|
||||
def forward(self, xs):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue