Remove redundant assignment (#14498)
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
parent
e866579830
commit
81544c6d71
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue