qat.core.pipeline module
- class HardwareLoaders(hardware_loaders={})
Bases:
object
- clear_cache()
- classmethod from_descriptions(hardware_loader_descriptions)
- get_loader(loader_name, default=None)
Returns a hardware model loader by name.
- Return type:
- load(loader_name, default=None, allow_cache=True)
Loads a hardware model, using the internal cache unless allow_cache=False.
- reload_all_models()
Reloads all hardware models from their respective loaders, updating the cache.
- reload_model(loader_name)
Reloads a hardware model from its loader, updating the model in the cache.
- Return type:
- class PipelineSet(pipelines=[])
Bases:
object
- add(pipeline, default=False)
Adds a pipeline for subsequent use for compilation and execution
- Parameters:
pipeline¶ (AbstractPipeline) – A pipeline instance to add, indexed by pipeline.name
default¶ (bool, optional) – Set the added pipeline as the default, defaults to False
- property default: str
Returns the name of the current default pipeline
- classmethod from_descriptions(pipeline_descriptions, available_hardware)
- get(pipeline)
Gets a stored pipeline by name (str) or passes through a pipeline instance
- Parameters:
pipeline¶ (AbstractPipeline | str) – A pipeline instance or the string name of a stored pipeline
- reload_all_models()
Refreshes all
UpdateablePipeline
instances with hardware model loaders by updating the models from their caches.
- reload_model(pipeline)
Refreshes a pipeline by updating the models from its cache.
- Parameters:
pipeline¶ (
str
) – The name of the pipeline to refresh.
- remove(pipeline)
Remove a pipeline
- Parameters:
pipeline¶ (AbstractPipeline | str) – The name of a pipeline or a pipeline instance to remove
- set_default(pipeline)