evomo.operators.selection.backends#

Resolve an optional backend before compiling an algorithm or operator.

Functions#

get_non_dominate_backend(→ types.ModuleType)

Return the torch (default) or experimental triton operator module.

Module Contents#

evomo.operators.selection.backends.get_non_dominate_backend(backend: str = 'torch') → types.ModuleType#

Return the torch (default) or experimental triton operator module.

Call this during setup, outside torch.compile. Triton is imported only when explicitly requested. The returned module exposes non_dominate_rank, dominate_relation, crowding_distance and nd_environmental_selection.