# {py:mod}`evox.algorithms.so.pso_variants.utils` ```{py:module} evox.algorithms.so.pso_variants.utils ``` ```{autodoc2-docstring} evox.algorithms.so.pso_variants.utils :allowtitles: ``` ## Module Contents ### Functions ````{list-table} :class: autosummary longtable :align: left * - {py:obj}`min_by ` - ```{autodoc2-docstring} evox.algorithms.so.pso_variants.utils.min_by :summary: ``` * - {py:obj}`random_select_from_mask ` - ```{autodoc2-docstring} evox.algorithms.so.pso_variants.utils.random_select_from_mask :summary: ``` ```` ### API ````{py:function} min_by(values: typing.List[torch.Tensor], keys: typing.List[torch.Tensor]) -> typing.Tuple[torch.Tensor, torch.Tensor] :canonical: evox.algorithms.so.pso_variants.utils.min_by ```{autodoc2-docstring} evox.algorithms.so.pso_variants.utils.min_by ``` ```` ````{py:function} random_select_from_mask(mask: torch.Tensor, count: int, dim: int = -1) -> torch.Tensor :canonical: evox.algorithms.so.pso_variants.utils.random_select_from_mask ```{autodoc2-docstring} evox.algorithms.so.pso_variants.utils.random_select_from_mask ``` ````