Table of Contents

Struct TensorRtAllocatorDryRunResult

Namespace
JYPPX.TensorRtSharp
Assembly
JYPPX.TensorRtSharp.dll

Reports the result of an allocator dry-run diagnostic. 表示 allocator dry-run 诊断结果。

public readonly struct TensorRtAllocatorDryRunResult
Inherited Members

Remarks

The result intentionally contains no pointer value. It is a managed readiness signal, not an allocation result. 该结果故意不包含任何指针值;它是托管可用性信号,不是分配结果。

Constructors

TensorRtAllocatorDryRunResult(bool, string)

Creates a dry-run result. 创建 dry-run 结果。

public TensorRtAllocatorDryRunResult(bool succeeded, string diagnostic)

Parameters

succeeded bool

Whether the diagnostic completed successfully. 诊断是否成功完成。

diagnostic string

A copied diagnostic message. 复制出的诊断消息。

Properties

Diagnostic

Gets a copied diagnostic message. 获取复制出的诊断消息。

public string Diagnostic { get; }

Property Value

string

Succeeded

Gets whether the diagnostic completed successfully. 获取诊断是否成功完成。

public bool Succeeded { get; }

Property Value

bool

Methods

Failure(string)

Creates a failed dry-run result. 创建失败的 dry-run 结果。

public static TensorRtAllocatorDryRunResult Failure(string diagnostic)

Parameters

diagnostic string

A copied diagnostic message. 复制出的诊断消息。

Returns

TensorRtAllocatorDryRunResult

A failed result. 失败结果。

Success(string)

Creates a successful dry-run result. 创建成功的 dry-run 结果。

public static TensorRtAllocatorDryRunResult Success(string diagnostic = "OK")

Parameters

diagnostic string

A copied diagnostic message. 复制出的诊断消息。

Returns

TensorRtAllocatorDryRunResult

A successful result. 成功结果。

ToString()

Returns a compact diagnostic representation. 返回紧凑的诊断表示。

public override string ToString()

Returns

string

A diagnostic string. 诊断字符串。