Remove redundant assignment (#14498)

Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
Aryan Jassal 2024-07-18 01:27:07 +10:00 committed by GitHub
parent e866579830
commit 81544c6d71
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -855,7 +855,7 @@ class Attention(nn.Module):
self.head_dim = dim // num_heads
self.key_dim = int(self.head_dim * attn_ratio)
self.scale = self.key_dim**-0.5
nh_kd = nh_kd = self.key_dim * num_heads
nh_kd = self.key_dim * num_heads
h = dim + nh_kd * 2
self.qkv = Conv(dim, h, 1, act=False)
self.proj = Conv(dim, dim, 1, act=False)