释放模型 - YoloReleaseModel
函数简介
卸载模型并释放底层 session/engine 等资源。
接口名称
YoloReleaseModel
DLL 调用
int YoloReleaseModel(long ola, long modelHandle);
参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| ola | 长整数型 | OLAPlug 对象指针,由 CreateCOLAPlugInterFace 生成。 |
| modelHandle | 长整数型 | YoloLoad* 返回的句柄 |
返回值
整数型:1 成功,0 失败。
注意事项
- 需要插件已开通 Yolos 模块权限。
- 不再使用时必须释放,避免 GPU/内存泄漏。
