Table of Contents

Class TensorRtAllocatorInterfaceInfoDesignGate

Namespace
JYPPX.TensorRtSharp
Assembly
JYPPX.TensorRtSharp.dll

Evaluates the pointer-free TensorRT allocator interface-info metadata design gate. 评估 TensorRT allocator interface-info metadata 的无裸指针设计门。

public static class TensorRtAllocatorInterfaceInfoDesignGate
Inheritance
TensorRtAllocatorInterfaceInfoDesignGate
Inherited Members

Remarks

Allocators are application-owned callback objects. This gate only records copied interface metadata requirements and does not expose allocator handles or enable allocation callbacks. Allocator 是应用侧拥有的 callback 对象;该门禁只记录 copied interface metadata 要求,不暴露 allocator handle,也不启用 allocation callback。

Methods

Evaluate(TensorRtApiLine, bool, bool, bool, bool, bool, bool)

Evaluates allocator interface-info readiness from explicit capability flags. 根据显式能力标记评估 allocator interface-info 就绪状态。

public static TensorRtAllocatorInterfaceInfoDesignGateResult Evaluate(TensorRtApiLine line, bool copiedInterfaceInfoMetadataReady, bool temporaryStorageAllocatorSnapshotAvailable, bool outputAllocatorSnapshotAvailable, bool allocatorOwnerLifetimeModeled, bool deviceMemoryOwnershipModeled, bool asyncStreamLifetimeModeled)

Parameters

line TensorRtApiLine

The TensorRT API line. TensorRT API 版本线。

copiedInterfaceInfoMetadataReady bool

Whether copied interface-info metadata shape is ready. copied interface-info metadata 形态是否就绪。

temporaryStorageAllocatorSnapshotAvailable bool

Whether temporary-storage allocator copied metadata exists. temporary-storage allocator copied metadata 是否存在。

outputAllocatorSnapshotAvailable bool

Whether output allocator copied metadata exists. output allocator copied metadata 是否存在。

allocatorOwnerLifetimeModeled bool

Whether allocator owner lifetime has been modeled. allocator owner lifetime 是否已建模。

deviceMemoryOwnershipModeled bool

Whether device memory ownership has been modeled. device memory ownership 是否已建模。

asyncStreamLifetimeModeled bool

Whether async stream lifetime has been modeled. async stream lifetime 是否已建模。

Returns

TensorRtAllocatorInterfaceInfoDesignGateResult

A pointer-free allocator interface-info design gate result. 无裸指针 allocator interface-info 设计门结果。

EvaluateKnownSurface(TensorRtApiLine)

Evaluates the known public allocator interface-info design surface for a TensorRT API line. 基于已知 public allocator interface-info 设计边界评估指定 TensorRT API line。

public static TensorRtAllocatorInterfaceInfoDesignGateResult EvaluateKnownSurface(TensorRtApiLine line)

Parameters

line TensorRtApiLine

The TensorRT API line. TensorRT API 版本线。

Returns

TensorRtAllocatorInterfaceInfoDesignGateResult

A pointer-free allocator interface-info design gate result. 无裸指针 allocator interface-info 设计门结果。