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
318513ae
Unverified
Commit
318513ae
authored
Jun 17, 2021
by
Jiezhong Qiu
Committed by
GitHub
Jun 17, 2021
Browse files
use single variable for returned value
the old impl raised error "too many values to unpack (expected 1)"
parent
28bfe689
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
fmoe/gates/utils.py
fmoe/gates/utils.py
+1
-1
No files found.
fmoe/gates/utils.py
View file @
318513ae
...
...
@@ -16,7 +16,7 @@ def limit_by_capacity(topk_idx, num_expert, world_size, capacity):
new_gec
=
fmoe_native
.
limit_by_capacity
(
gec
,
capacity
,
num_expert
,
world_size
)
if
world_size
>
1
:
new_lec
,
=
fmoe_native
.
expert_exchange
(
new_gec
,
num_expert
,
new_lec
=
fmoe_native
.
expert_exchange
(
new_gec
,
num_expert
,
world_size
)
else
:
new_lec
=
new_gec
...
...
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