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
tensorNamestringThe copied debug tensor name. 复制出的 debug tensor 名称。
dataTypeTensorRtDataTypeThe copied debug tensor data type. 复制出的 debug tensor 数据类型。
locationTensorRtTensorLocationThe copied debug tensor location. 复制出的 debug tensor 位置。
shapeDimensionslong[]The copied debug tensor shape dimensions. 复制出的 debug tensor shape 维度。
reasonstringA diagnostic reason copied from the caller. 调用方提供的诊断原因。
isInputboolWhether the copied metadata describes an input tensor. 复制出的元数据是否表示输入 tensor。
isOutputboolWhether the copied metadata describes an output tensor. 复制出的元数据是否表示输出 tensor。
isShapeTensorboolWhether the copied metadata describes a shape tensor. 复制出的元数据是否表示 shape tensor。
isExecutionTensorboolWhether 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
IsExecutionTensor
Gets whether the copied metadata describes an execution tensor. 获取复制出的元数据是否表示 execution tensor。
public bool IsExecutionTensor { get; }
Property Value
IsInput
Gets whether the copied metadata describes an input tensor. 获取复制出的元数据是否表示输入 tensor。
public bool IsInput { get; }
Property Value
IsOutput
Gets whether the copied metadata describes an output tensor. 获取复制出的元数据是否表示输出 tensor。
public bool IsOutput { get; }
Property Value
IsShapeTensor
Gets whether the copied metadata describes a shape tensor. 获取复制出的元数据是否表示 shape tensor。
public bool IsShapeTensor { get; }
Property Value
Location
Gets the copied debug tensor location. 获取复制出的 debug tensor 位置。
public TensorRtTensorLocation Location { get; }
Property Value
Reason
Gets the copied diagnostic reason. 获取复制出的诊断原因。
public string Reason { get; }
Property Value
ShapeDimensions
Gets the copied debug tensor shape dimensions. 获取复制出的 debug tensor shape 维度。
public ReadOnlyCollection<long> ShapeDimensions { get; }
Property Value
ShapeRank
Gets the copied debug tensor shape rank. 获取复制出的 debug tensor shape rank。
public int ShapeRank { get; }
Property Value
TensorName
Gets the copied debug tensor name. 获取复制出的 debug tensor 名称。
public string TensorName { get; }