Class BridgeRuntimeInfo
Runtime-facing bridge state reported by the native layer. 原生层报告的面向运行时的 bridge 状态。
public sealed class BridgeRuntimeInfo
- Inheritance
-
BridgeRuntimeInfo
- Inherited Members
Constructors
BridgeRuntimeInfo(int, string, string, string, BridgeErrorCategory, bool, bool)
Creates a bridge runtime-information snapshot. 创建 bridge 运行时信息快照。
public BridgeRuntimeInfo(int abiVersion, string bridgeName, string bridgeBanner, string lastErrorMessage, BridgeErrorCategory lastErrorCategory, bool cudaToolkitAvailable, bool tensorRtAvailable)
Parameters
abiVersionintbridgeNamestringbridgeBannerstringlastErrorMessagestringlastErrorCategoryBridgeErrorCategorycudaToolkitAvailablebooltensorRtAvailablebool
Properties
AbiVersion
Gets the native bridge ABI version. 获取原生 bridge ABI 版本。
public int AbiVersion { get; }
Property Value
BridgeBanner
Gets the bridge banner string. 获取 bridge banner 字符串。
public string BridgeBanner { get; }
Property Value
BridgeName
Gets the logical bridge name. 获取逻辑 bridge 名称。
public string BridgeName { get; }
Property Value
CudaToolkitAvailable
Gets whether CUDA toolkit dependencies are currently available. 获取当前 CUDA toolkit 依赖是否可用。
public bool CudaToolkitAvailable { get; }
Property Value
LastErrorCategory
Gets the category of the last bridge error. 获取最近一次 bridge 错误所属类别。
public BridgeErrorCategory LastErrorCategory { get; }
Property Value
LastErrorMessage
Gets the last bridge error message. 获取最近一次 bridge 错误消息。
public string LastErrorMessage { get; }
Property Value
TensorRtAvailable
Gets whether TensorRT dependencies are currently available. 获取当前 TensorRT 依赖是否可用。
public bool TensorRtAvailable { get; }