mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-08-28 12:10:04 +08:00
Update moe.py
fixed not returning y in the forward method of MoEBlock
This commit is contained in:
parent
8ecad4cbb3
commit
b445dd3af3
@ -152,6 +152,8 @@ class MoEBlock(nn.Module):
|
|||||||
|
|
||||||
y = y + self.shared_experts(identity)
|
y = y + self.shared_experts(identity)
|
||||||
|
|
||||||
|
return y
|
||||||
|
|
||||||
@torch.no_grad()
|
@torch.no_grad()
|
||||||
def moe_infer(self, x, flat_expert_indices, flat_expert_weights):
|
def moe_infer(self, x, flat_expert_indices, flat_expert_weights):
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user