MCPcopy Create free account
hub / github.com/F-Stack/f-stack / rte_ml_model_stop

Function rte_ml_model_stop

dpdk/lib/mldev/rte_mldev.c:632–647  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

630}
631
632int
633rte_ml_model_stop(int16_t dev_id, uint16_t model_id)
634{
635 struct rte_ml_dev *dev;
636
637 if (!rte_ml_dev_is_valid_dev(dev_id)) {
638 RTE_MLDEV_LOG(ERR, "Invalid dev_id = %d", dev_id);
639 return -EINVAL;
640 }
641
642 dev = rte_ml_dev_pmd_get_dev(dev_id);
643 if (*dev->dev_ops->model_stop == NULL)
644 return -ENOTSUP;
645
646 return (*dev->dev_ops->model_stop)(dev, model_id);
647}
648
649int
650rte_ml_model_info_get(int16_t dev_id, uint16_t model_id, struct rte_ml_model_info *model_info)

Callers 1

ml_model_stopFunction · 0.85

Calls 2

rte_ml_dev_is_valid_devFunction · 0.85
rte_ml_dev_pmd_get_devFunction · 0.85

Tested by 1

ml_model_stopFunction · 0.68