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

Function rte_ml_model_unload

dpdk/lib/mldev/rte_mldev.c:598–613  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

596}
597
598int
599rte_ml_model_unload(int16_t dev_id, uint16_t model_id)
600{
601 struct rte_ml_dev *dev;
602
603 if (!rte_ml_dev_is_valid_dev(dev_id)) {
604 RTE_MLDEV_LOG(ERR, "Invalid dev_id = %d", dev_id);
605 return -EINVAL;
606 }
607
608 dev = rte_ml_dev_pmd_get_dev(dev_id);
609 if (*dev->dev_ops->model_unload == NULL)
610 return -ENOTSUP;
611
612 return (*dev->dev_ops->model_unload)(dev, model_id);
613}
614
615int
616rte_ml_model_start(int16_t dev_id, uint16_t model_id)

Callers 1

ml_model_unloadFunction · 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_unloadFunction · 0.68