pygrenade_vx.network.abstract.frontend.Experiment
-
class
pygrenade_vx.network.abstract.frontend.Experiment(calibration: Optional[_pygrenade_vx_network_abstract.Calibration, None] = None, mapper: Optional[_pygrenade_vx_network_abstract.Mapper, None] = None) Bases:
objectStateful experiment description.
-
__init__(calibration: Optional[_pygrenade_vx_network_abstract.Calibration, None] = None, mapper: Optional[_pygrenade_vx_network_abstract.Mapper, None] = None) Initialize self. See help(type(self)) for accurate signature.
Methods
__init__([calibration, mapper])Initialize self.
add_snippet(snippet_begin_time, …)Add fill current snippet and add a new one.
fill_snippet(snippet_begin_time, …)Fill current snippet by adding its elements, creating a mapping, adding the elements’ input data and mapping topology and input data.
generate_runtimes(runtime)Generate runtimes for current snippet.
reset()Reset experiment by removing all contained snippets.
run(executor)Execute all currently contained snippets with given executor.
-
add_snippet(snippet_begin_time, snippet_end_time, executor: _pygrenade_vx_execution.JITGraphExecutorHandle) Add fill current snippet and add a new one.
-
fill_snippet(snippet_begin_time, snippet_end_time, executor: _pygrenade_vx_execution.JITGraphExecutorHandle) Fill current snippet by adding its elements, creating a mapping, adding the elements’ input data and mapping topology and input data.
-
abstract
generate_runtimes(runtime) → Dict[pygrenade_common.TimeDomainOnTopology, pygrenade_common.TimeDomainRuntimes] Generate runtimes for current snippet. This method is called during filling a snippet.
-
reset() Reset experiment by removing all contained snippets.
-
run(executor: _pygrenade_vx_execution.JITGraphExecutorHandle) Execute all currently contained snippets with given executor. Distribute output data to elements of snippets.
-