Remove Redundant Assignment in Qwen3_VisionPatchMerger (#25224)

Signed-off-by: Junhong <liujunhong11@huawei.com>
Co-authored-by: Junhong <liujunhong11@huawei.com>
Co-authored-by: Roger Wang <hey@rogerw.io>
This commit is contained in:
LJH-LBJ 2025-09-20 02:15:13 +08:00 committed by GitHub
parent 2821986450
commit d90e212a3a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -223,9 +223,7 @@ class Qwen3_VisionPatchMerger(nn.Module):
if norm_layer is None:
norm_layer = partial(nn.LayerNorm, eps=1e-6)
self.use_postshuffle_norm = use_postshuffle_norm
self.norm = norm_layer(
self.hidden_size if use_postshuffle_norm else context_dim)
self.norm = norm_layer(context_dim)
self.linear_fc1 = ColumnParallelLinear(self.hidden_size,
self.hidden_size,
bias=True,