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
- 参数
config –
context –
pipeline –
- 返回
-
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
- 参数
model –
context –
pipeline –
- 返回
-
int mmdeploy_pipeline_apply(mmdeploy_pipeline_t pipeline, mmdeploy_value_t input, mmdeploy_value_t *output)¶
Apply pipeline.
- 参数
pipeline – [in] handle of the pipeline
input – [in] input value
output – [out] output value
- 返回
status of the operation
-
int mmdeploy_pipeline_apply_async(mmdeploy_pipeline_t pipeline, mmdeploy_sender_t input, mmdeploy_sender_t *output)¶
Apply pipeline asynchronously
- 参数
pipeline – handle of the pipeline
input – input sender that will be consumed by the operation
output – output sender
- 返回
status of the operation
-
void mmdeploy_pipeline_destroy(mmdeploy_pipeline_t pipeline)¶
destroy pipeline
- 参数
pipeline – [in]