Class TensorRtRuntimeDeserializationBoundaryPrecheck
- Namespace
- JYPPX.TensorRtSharp
- Assembly
- JYPPX.TensorRtSharp.dll
Evaluates the pointer-free TensorRT runtime deserialization boundary precheck. 评估 TensorRT runtime deserialization 边界的无裸指针预检。
public static class TensorRtRuntimeDeserializationBoundaryPrecheck
- Inheritance
-
TensorRtRuntimeDeserializationBoundaryPrecheck
- Inherited Members
Remarks
This precheck describes the managed safe deserialization surface. It does not expose an
ICudaEngine*, does not call IRuntime::loadRuntime, and is not runtime execution proof.
该预检描述托管安全反序列化边界;不会暴露 ICudaEngine*,不会调用
IRuntime::loadRuntime,也不是 runtime execution proof。
Methods
Evaluate(TensorRtApiLine, bool, bool, bool, bool, bool, bool, bool, bool, bool, bool, bool, bool)
Evaluates the runtime deserialization boundary from explicit capability flags. 根据显式能力标记评估 runtime deserialization 边界。
public static TensorRtRuntimeDeserializationBoundaryPrecheckResult Evaluate(TensorRtApiLine line, bool managedByteArrayDeserializeReady, bool managedArraySegmentDeserializeReady, bool managedReadOnlySpanDeserializeReady, bool managedStreamDeserializeReady, bool managedFileDeserializeReady, bool hostMemoryDeserializeReady, bool serializedBufferCopiedBeforeInterop, bool pinnedBufferScopedToInteropCall, bool hostMemoryHandleOwnedByWrapper, bool engineHandleOwnedByWrapper, bool pluginLibraryDependencyDiagnosticsReady, bool fullPackageConsumerRuntimeEvidenceReady)
Parameters
lineTensorRtApiLineThe TensorRT API line. TensorRT API 版本线。
managedByteArrayDeserializeReadyboolWhether byte-array deserialization is available. byte[] 反序列化是否可用。
managedArraySegmentDeserializeReadyboolWhether ArraySegment deserialization copies into an exact array. ArraySegment 反序列化是否复制为精确数组。
managedReadOnlySpanDeserializeReadyboolWhether ReadOnlySpan deserialization copies into managed memory. ReadOnlySpan 反序列化是否复制到托管内存。
managedStreamDeserializeReadyboolWhether stream deserialization copies into managed memory. Stream 反序列化是否复制到托管内存。
managedFileDeserializeReadyboolWhether file deserialization uses managed bytes. 文件反序列化是否使用托管字节。
hostMemoryDeserializeReadyboolWhether TensorRT host-memory deserialization is available. TensorRT host memory 反序列化是否可用。
serializedBufferCopiedBeforeInteropboolWhether caller-owned buffers are copied before interop when needed. 必要时是否在 interop 前复制调用方 buffer。
pinnedBufferScopedToInteropCallboolWhether pinned managed buffers are scoped to the native call. pinned 托管 buffer 是否只在 native 调用期间有效。
hostMemoryHandleOwnedByWrapperboolWhether host-memory handles are owned by wrappers. host memory handle 是否由 wrapper 管理。
engineHandleOwnedByWrapperboolWhether returned engine handles are owned by wrappers. 返回 engine handle 是否由 wrapper 管理。
pluginLibraryDependencyDiagnosticsReadyboolWhether plugin/library dependency diagnostics are sufficient for promotion. plugin/library dependency 诊断是否足以晋级。
fullPackageConsumerRuntimeEvidenceReadyboolWhether full package consumer runtime proof is ready. 完整 package consumer runtime proof 是否就绪。
Returns
- TensorRtRuntimeDeserializationBoundaryPrecheckResult
A pointer-free runtime deserialization precheck result. 无裸指针 runtime deserialization 预检结果。
EvaluateKnownSurface(TensorRtApiLine)
Evaluates the known public runtime deserialization surface for a TensorRT API line. 基于已知 public runtime deserialization 边界评估指定 TensorRT API line。
public static TensorRtRuntimeDeserializationBoundaryPrecheckResult EvaluateKnownSurface(TensorRtApiLine line)
Parameters
lineTensorRtApiLineThe TensorRT API line. TensorRT API 版本线。
Returns
- TensorRtRuntimeDeserializationBoundaryPrecheckResult
A pointer-free runtime deserialization precheck result. 无裸指针 runtime deserialization 预检结果。