Skip to content

Commit

Permalink
Fix typo in beam_search.py (#532)
Browse files Browse the repository at this point in the history
Co-authored-by: Alexander Borzunov <[email protected]>
  • Loading branch information
eltociear and borzunov authored Dec 9, 2022
1 parent 6432353 commit 4c9c477
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hivemind/moe/client/beam_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def get_active_successors(
) -> Dict[ExpertPrefix, Dict[Coordinate, ExpertInfo]]:
"""
:param prefixes: a list of prefix for which to find active successor uids
:param grid_size: if specified, only return successors if ther are in range [0, grid_size)
:param grid_size: if specified, only return successors if they are in range [0, grid_size)
:param return_future: if False (default), find and return successors. Otherwise return MPFuture and fill later.
:returns: for every expert, return a dict{active_next_coordinate: (matching_expert_uid, matching_endpoint)}
:note: if a prefix is not found, get_active_successors will return an empty dictionary for that prefix
Expand Down

0 comments on commit 4c9c477

Please sign in to comment.