rlaphoenix / VSGAN

Variable assigned to itself PYL-W0127
Anti-pattern
Minor
8 months agoa year old
Assigning the same variable 'attn_mask' to itself
 664        # cyclic shift
 665        if self.shift_size > 0:
 666            shifted_x = torch.roll(x, shifts=(-self.shift_size, -self.shift_size), dims=(1, 2))
 667            attn_mask = attn_mask 668        else:
 669            shifted_x = x
 670            attn_mask = None