"src/vscode:/vscode.git/clone" did not exist on "e192ae08d37c8005fdea09a2e0120476af6c3d0b"
Unverified Commit 318513ae authored by Jiezhong Qiu's avatar Jiezhong Qiu Committed by GitHub
Browse files

use single variable for returned value

the old impl raised error "too many values to unpack (expected 1)"
parent 28bfe689
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment