ml_switcheroo.enums¶

Enumerations for ml-switcheroo.

This module defines standard enumerations used across the codebase for semantic categorization and framework identification.

Classes¶

SemanticTier

Categorization of API operations to distinct knowledge base tiers.

LogicOp

Supported operators for conditional logic rules in operations.

Module Contents¶

class ml_switcheroo.enums.SemanticTier[source]¶

Bases: str, enum.Enum

Categorization of API operations to distinct knowledge base tiers.

Used to route definitions to specific JSON files in src/ml_switcheroo/semantics/.

ARRAY_API = 'array'¶
NEURAL = 'neural'¶
NEURAL_OPS = 'neural_ops'¶
EXTRAS = 'extras'¶
class ml_switcheroo.enums.LogicOp[source]¶

Bases: str, enum.Enum

Supported operators for conditional logic rules in operations. Used for Conditional API Dispatch.

EQ = 'eq'¶
NEQ = 'neq'¶
GT = 'gt'¶
LT = 'lt'¶
GTE = 'gte'¶
LTE = 'lte'¶
IN = 'in'¶
NOT_IN = 'not_in'¶
IS_TYPE = 'is_type'¶