mirror of
https://github.com/NicolasBohn/NexQuant.git
synced 2026-08-05 11:07:43 +00:00
fix: revert model and make SOTA model available to COSTEER (#351)
* revert model and make SOTA model available to COSTEER * fix CI * fix CI * fix CI
This commit is contained in:
@@ -184,15 +184,22 @@ ASpecificWSForExperiment = TypeVar("ASpecificWSForExperiment", bound=Workspace)
|
||||
ASpecificWSForSubTasks = TypeVar("ASpecificWSForSubTasks", bound=Workspace)
|
||||
|
||||
|
||||
class Experiment(ABC, Generic[ASpecificTask, ASpecificWSForExperiment, ASpecificWSForSubTasks]):
|
||||
class Experiment(
|
||||
ABC,
|
||||
Generic[ASpecificTask, ASpecificWSForExperiment, ASpecificWSForSubTasks],
|
||||
):
|
||||
"""
|
||||
The experiment is a sequence of tasks and the implementations of the tasks after generated by the Developer.
|
||||
"""
|
||||
|
||||
def __init__(self, sub_tasks: Sequence[ASpecificTask]) -> None:
|
||||
def __init__(
|
||||
self,
|
||||
sub_tasks: Sequence[ASpecificTask],
|
||||
based_experiments: Sequence[ASpecificWSForExperiment] = [],
|
||||
) -> None:
|
||||
self.sub_tasks = sub_tasks
|
||||
self.sub_workspace_list: list[ASpecificWSForSubTasks | None] = [None] * len(self.sub_tasks)
|
||||
self.based_experiments: Sequence[ASpecificWSForExperiment] = []
|
||||
self.based_experiments: Sequence[ASpecificWSForExperiment] = based_experiments
|
||||
self.result: object = None # The result of the experiment, can be different types in different scenarios.
|
||||
self.experiment_workspace: ASpecificWSForExperiment | None = None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user