openasce.core package

Submodules

openasce.core.runtime module

class openasce.core.runtime.Runtime[source]

Bases: object

Runtime Class

Provide the runtime layer to support different running environment, including the single machine or multiple machines.

Attributes:

__init__() None[source]
launch(*, num: int = 1, param: Any = None, dataset: Iterable = None) List[source]

Start the job on current environment

The function is called as the start point of one causal workload and setup the instances according to current environment. Iterable[Tuple[np.ndarray, np.ndarray]]

Arguments:

Returns:

todo(id: int, total_num: int, param: Any, dataset: Iterable) Any[source]

Contain the function from the sub-class, and run it in workers

The sub-class should implement this routine and runtime invokes it.

Arguments:

Returns: