Please use. NET 5,. NET 6, NET 7,. NET 8, NET Framework 4.6, NET Framework 4.61, NET Framework 4.7, NET Framework 4.72, NET Framework 4.8, NET Framework 4.81, and. NET Core 3.1 versions

IModelInferEngineDispose 方法

Releases all resources used by the inference engine. 释放推理引擎使用的所有资源。

Definition

命名空间: DeploySharp.Engine
程序集: DeploySharp (在 DeploySharp.dll 中) 版本:0.0.4+6e8a2e904469617cd59619d666c0e272985c0e33
C#
void Dispose()

实现

IDisposableDispose

备注

Implementations should: - Release model memory and session handles - Dispose any native resources - Cleanup temporary files - Set disposed state 实现应该: - 释放模型内存和会话句柄 - 处理任何原生资源 - 清理临时文件 - 设置disposed状态

Subsequent calls to Predict after disposal should throw ObjectDisposedException. 在dispose后调用Predict应抛出ObjectDisposedException。

参见