Table of Contents

Class TensorRtOutputBufferOwnershipSafetyGate

Namespace
JYPPX.TensorRtSharp
Assembly
JYPPX.TensorRtSharp.dll

Evaluates copied OutputAllocator output-buffer ownership rules before any real TensorRT callback runtime proof exists. 该成员提供 OutputAllocator 输出缓冲区所有权边界的只读诊断信息;不会暴露 native 指针。

public static class TensorRtOutputBufferOwnershipSafetyGate
Inheritance
TensorRtOutputBufferOwnershipSafetyGate
Inherited Members

Remarks

This gate models ownership policy only. It does not allocate device memory, does not consume or return currentMemory, and does not expose a native output buffer pointer. 该说明强调当前结果只是输出缓冲区所有权安全门禁,不代表真实 TensorRT callback runtime proof。

Methods

Evaluate(TensorRtOutputAllocatorCallbackOwnerSnapshot)

Evaluates output-buffer ownership safety from a copied OutputAllocator owner design snapshot. 该成员提供 OutputAllocator 输出缓冲区所有权边界的只读诊断信息;不会暴露 native 指针。

public static TensorRtOutputBufferOwnershipSafetyGateResult Evaluate(TensorRtOutputAllocatorCallbackOwnerSnapshot ownerDesignSnapshot)

Parameters

ownerDesignSnapshot TensorRtOutputAllocatorCallbackOwnerSnapshot

The copied OutputAllocator owner design snapshot. 该参数传入已复制的 OutputAllocator owner 或 attach/detach evidence。

Returns

TensorRtOutputBufferOwnershipSafetyGateResult

A pointer-free output-buffer ownership safety result. 返回不暴露 native output buffer 指针的诊断结果。

Evaluate(TensorRtOutputAllocatorCallbackOwnerSnapshot, TensorRtOutputAllocatorAttachDetachDesignGateResult)

Evaluates output-buffer ownership safety from copied owner and attach/detach design evidence. 该成员提供 OutputAllocator 输出缓冲区所有权边界的只读诊断信息;不会暴露 native 指针。

public static TensorRtOutputBufferOwnershipSafetyGateResult Evaluate(TensorRtOutputAllocatorCallbackOwnerSnapshot ownerDesignSnapshot, TensorRtOutputAllocatorAttachDetachDesignGateResult attachDetachDesignGate)

Parameters

ownerDesignSnapshot TensorRtOutputAllocatorCallbackOwnerSnapshot

The copied OutputAllocator owner design snapshot. 该参数传入已复制的 OutputAllocator owner 或 attach/detach evidence。

attachDetachDesignGate TensorRtOutputAllocatorAttachDetachDesignGateResult

The copied attach/detach design gate result. 该参数传入已复制的 OutputAllocator owner 或 attach/detach evidence。

Returns

TensorRtOutputBufferOwnershipSafetyGateResult

A pointer-free output-buffer ownership safety result. 返回不暴露 native output buffer 指针的诊断结果。