Table of Contents

Class TensorRtOptimizationProfileShapeRange

Namespace
JYPPX.TensorRtSharp
Assembly
JYPPX.TensorRtSharp.dll

Represents the min/opt/max dimension range of a TensorRT optimization profile input. 表示 TensorRT 优化 profile 输入张量的 min/opt/max 维度范围。

public sealed class TensorRtOptimizationProfileShapeRange
Inheritance
TensorRtOptimizationProfileShapeRange
Inherited Members

Constructors

TensorRtOptimizationProfileShapeRange(TensorRtDims, TensorRtDims, TensorRtDims)

Creates a TensorRT optimization profile dimension range. 创建 TensorRT optimization profile 维度范围对象。

public TensorRtOptimizationProfileShapeRange(TensorRtDims min, TensorRtDims opt, TensorRtDims max)

Parameters

min TensorRtDims

Minimum supported shape. 最小支持形状。

opt TensorRtDims

Optimization target shape. 优化目标形状。

max TensorRtDims

Maximum supported shape. 最大支持形状。

Properties

Max

Gets the maximum supported shape. 获取最大支持形状。

public TensorRtDims Max { get; }

Property Value

TensorRtDims

Min

Gets the minimum supported shape. 获取最小支持形状。

public TensorRtDims Min { get; }

Property Value

TensorRtDims

Opt

Gets the optimization target shape. 获取优化目标形状。

public TensorRtDims Opt { get; }

Property Value

TensorRtDims

Methods

ToString()

Formats the min/opt/max shape range for diagnostics. 将 min/opt/max shape 范围格式化为便于诊断的字符串。

public override string ToString()

Returns

string

A display string containing minimum, optimal, and maximum shapes. 包含最小、最优和最大形状的显示字符串。