Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
FastMoE
Commits
0abea7b2
Commit
0abea7b2
authored
Nov 23, 2021
by
Jiezhong Qiu
Browse files
remove non_moe_inp
parent
1c555604
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
fmoe/layers.py
fmoe/layers.py
+1
-1
No files found.
fmoe/layers.py
View file @
0abea7b2
...
@@ -173,7 +173,7 @@ class FMoE(nn.Module):
...
@@ -173,7 +173,7 @@ class FMoE(nn.Module):
mark_module_parallel_comm
(
self
.
experts
,
comm
)
mark_module_parallel_comm
(
self
.
experts
,
comm
)
mark_module_parallel_comm
(
self
.
gate
,
"gate"
)
mark_module_parallel_comm
(
self
.
gate
,
"gate"
)
def
forward
(
self
,
moe_inp
,
non_moe_inp
=
None
):
def
forward
(
self
,
moe_inp
):
r
"""
r
"""
The FMoE module first computes gate output, and then conduct MoE forward
The FMoE module first computes gate output, and then conduct MoE forward
according to the gate. The score of the selected gate given by the
according to the gate. The score of the selected gate given by the
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment