pipeline.h¶
-
typedef struct mmdeploy_pipeline *mmdeploy_pipeline_t¶
-
int mmdeploy_pipeline_create_v3(mmdeploy_value_t config, mmdeploy_context_t context, mmdeploy_pipeline_t *pipeline)¶
Create pipeline
- Parameters
config –
context –
pipeline –
- Returns
-
int mmdeploy_pipeline_create_from_model(mmdeploy_model_t model, mmdeploy_context_t context, mmdeploy_pipeline_t *pipeline)¶
Create pipeline from internal pipeline config of the model
- Parameters
model –
context –
pipeline –
- Returns
-
int mmdeploy_pipeline_apply(mmdeploy_pipeline_t pipeline, mmdeploy_value_t input, mmdeploy_value_t *output)¶
Apply pipeline.
- Parameters
pipeline – [in] handle of the pipeline
input – [in] input value
output – [out] output value
- Returns
status of the operation
-
int mmdeploy_pipeline_apply_async(mmdeploy_pipeline_t pipeline, mmdeploy_sender_t input, mmdeploy_sender_t *output)¶
Apply pipeline asynchronously
- Parameters
pipeline – handle of the pipeline
input – input sender that will be consumed by the operation
output – output sender
- Returns
status of the operation
-
void mmdeploy_pipeline_destroy(mmdeploy_pipeline_t pipeline)¶
destroy pipeline
- Parameters
pipeline – [in]