Table of Contents

Struct TensorRtDebugListenerCallbackRequest

Namespace
JYPPX.TensorRtSharp
Assembly
JYPPX.TensorRtSharp.dll

Describes one diagnostic request for the future TensorRT debug-listener callback owner. 描述未来 TensorRT debug-listener callback owner 的一次诊断请求。

public readonly struct TensorRtDebugListenerCallbackRequest
Inherited Members

Remarks

This request contains copied metadata only. It does not carry a TensorRT tensor pointer, tensor buffer pointer, CUDA stream handle, or debug tensor data ownership. 该请求只包含复制出的元数据;不携带 TensorRT tensor pointer、tensor buffer pointer、CUDA stream handle 或 debug tensor 数据所有权。

Constructors

TensorRtDebugListenerCallbackRequest(string, TensorRtDataType, TensorRtTensorLocation, long[]?, string, bool, bool, bool, bool)

Creates a debug-listener owner diagnostic request. 创建 debug-listener owner 诊断请求。

public TensorRtDebugListenerCallbackRequest(string tensorName, TensorRtDataType dataType, TensorRtTensorLocation location, long[]? shapeDimensions, string reason = "", bool isInput = false, bool isOutput = false, bool isShapeTensor = false, bool isExecutionTensor = true)

Parameters

tensorName string

The copied debug tensor name. 复制出的 debug tensor 名称。

dataType TensorRtDataType

The copied debug tensor data type. 复制出的 debug tensor 数据类型。

location TensorRtTensorLocation

The copied debug tensor location. 复制出的 debug tensor 位置。

shapeDimensions long[]

The copied debug tensor shape dimensions. 复制出的 debug tensor shape 维度。

reason string

A diagnostic reason copied from the caller. 调用方提供的诊断原因。

isInput bool

Whether the copied metadata describes an input tensor. 复制出的元数据是否表示输入 tensor。

isOutput bool

Whether the copied metadata describes an output tensor. 复制出的元数据是否表示输出 tensor。

isShapeTensor bool

Whether the copied metadata describes a shape tensor. 复制出的元数据是否表示 shape tensor。

isExecutionTensor bool

Whether the copied metadata describes an execution tensor. 复制出的元数据是否表示 execution tensor。

Properties

DataType

Gets the copied debug tensor data type. 获取复制出的 debug tensor 数据类型。

public TensorRtDataType DataType { get; }

Property Value

TensorRtDataType

IsExecutionTensor

Gets whether the copied metadata describes an execution tensor. 获取复制出的元数据是否表示 execution tensor。

public bool IsExecutionTensor { get; }

Property Value

bool

IsInput

Gets whether the copied metadata describes an input tensor. 获取复制出的元数据是否表示输入 tensor。

public bool IsInput { get; }

Property Value

bool

IsOutput

Gets whether the copied metadata describes an output tensor. 获取复制出的元数据是否表示输出 tensor。

public bool IsOutput { get; }

Property Value

bool

IsShapeTensor

Gets whether the copied metadata describes a shape tensor. 获取复制出的元数据是否表示 shape tensor。

public bool IsShapeTensor { get; }

Property Value

bool

Location

Gets the copied debug tensor location. 获取复制出的 debug tensor 位置。

public TensorRtTensorLocation Location { get; }

Property Value

TensorRtTensorLocation

Reason

Gets the copied diagnostic reason. 获取复制出的诊断原因。

public string Reason { get; }

Property Value

string

ShapeDimensions

Gets the copied debug tensor shape dimensions. 获取复制出的 debug tensor shape 维度。

public ReadOnlyCollection<long> ShapeDimensions { get; }

Property Value

ReadOnlyCollection<long>

ShapeRank

Gets the copied debug tensor shape rank. 获取复制出的 debug tensor shape rank。

public int ShapeRank { get; }

Property Value

int

TensorName

Gets the copied debug tensor name. 获取复制出的 debug tensor 名称。

public string TensorName { get; }

Property Value

string