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.
- 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
- remove(pipeline)
Remove a pipeline
- Parameters:
pipeline¶ (AbstractPipeline | str) – The name of a pipeline or a pipeline instance to remove
- set_default(pipeline)