rlaphoenix / VSGAN

Field duplicates the name of its containing class PTC-W0052
Anti-pattern
Minor
8 months agoa year old
Class member cab has same name as its encolising class CAB
 812    def __init__(self, num_feat, compress_ratio=3, squeeze_factor=30):
 813        super().__init__()
 814
 815        self.cab = nn.Sequential( 816            nn.Conv2d(num_feat, num_feat // compress_ratio, 3, 1, 1),
 817            nn.GELU(),
 818            nn.Conv2d(num_feat // compress_ratio, num_feat, 3, 1, 1),