pipeline_registry
¶
Classes¶
fastvideo.pipelines.pipeline_registry.PipelineType
¶
Enumeration for different pipeline types.
Inherits from str to allow string comparison for backward compatibility.
Functions¶
fastvideo.pipelines.pipeline_registry.PipelineType.choices
classmethod
¶
fastvideo.pipelines.pipeline_registry.PipelineType.from_string
classmethod
¶
from_string(value: str) -> PipelineType
Convert string to PipelineType enum.
Source code in fastvideo/pipelines/pipeline_registry.py
Functions¶
fastvideo.pipelines.pipeline_registry.get_pipeline_registry
¶
get_pipeline_registry(pipeline_type: PipelineType | str | None = None) -> _PipelineRegistry
Get a pipeline registry for the specified mode, pipeline type, and workload type.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
pipeline_type
|
PipelineType | str | None
|
Pipeline type to load. If None and mode is provided, will be derived from mode. |
None
|
Returns:
| Type | Description |
|---|---|
_PipelineRegistry
|
A pipeline registry instance. |