2022-09-13 06:47:09 +00:00
|
|
|
from dataclasses import dataclass
|
2022-11-17 12:11:53 +00:00
|
|
|
from enum import Enum
|
2022-09-13 06:47:09 +00:00
|
|
|
|
|
|
|
__all__ = ['SolverOptions']
|
|
|
|
|
|
|
|
|
2022-11-17 12:11:53 +00:00
|
|
|
class SolverPerference(Enum):
|
|
|
|
"""
|
|
|
|
This enum class is to define the solver preference.
|
|
|
|
"""
|
|
|
|
STANDARD = 0
|
|
|
|
DP = 1
|
|
|
|
TP = 2
|
|
|
|
|
|
|
|
|
|
|
|
class DataloaderOption(Enum):
|
|
|
|
"""
|
|
|
|
This enum class is to define the dataloader option.
|
|
|
|
"""
|
|
|
|
REPLICATED = 0
|
|
|
|
DISTRIBUTED = 1
|
|
|
|
|
|
|
|
|
2022-09-13 06:47:09 +00:00
|
|
|
@dataclass
|
|
|
|
class SolverOptions:
|
|
|
|
"""
|
|
|
|
SolverOptions is a dataclass used to configure the preferences for the parallel execution plan search.
|
|
|
|
"""
|
2022-11-17 12:11:53 +00:00
|
|
|
solver_perference: SolverPerference = SolverPerference.STANDARD
|
|
|
|
dataloader_option: DataloaderOption = DataloaderOption.REPLICATED
|