[Perf] zeros -> empty to remove additional fill (#42988)

Signed-off-by: yewentao256 <zhyanwentao@126.com>
This commit is contained in:
Wentao Ye
2026-05-21 16:00:29 -04:00
committed by GitHub
parent 9b54e50e2c
commit b29cbf0652
4 changed files with 4 additions and 5 deletions
@@ -1094,7 +1094,6 @@ class GatedDeltaNetAttention(PluggableLayer, MambaBase):
)
core_attn_out.zero_()
z_out.zero_()
num_tokens_all = qkvz.shape[0]
mixed_qkv, z, b, a = self.prepare_gdn_attention_core_inputs(
qkvz, ba, num_tokens_all