Dims¶
Volume¶
Dims¶
- class tensorrt.Dims(*args, **kwargs)¶
Structure to define the dimensions of a tensor.
Dimsand all derived classes behave like Pythontuples. Furthermore, the TensorRT API can implicitly convert Python iterables toDimsobjects, sotupleorlistcan be used in place of this class.Overloaded function.
__init__(self: tensorrt.tensorrt.Dims) -> None
__init__(self: tensorrt.tensorrt.Dims, shape: collections.abc.Sequence[typing.SupportsInt]) -> None
Dims2¶
- class tensorrt.Dims2(*args, **kwargs)¶
Structure to define 2D shape.
Overloaded function.
__init__(self: tensorrt.tensorrt.Dims2) -> None
__init__(self: tensorrt.tensorrt.Dims2, dim0: typing.SupportsInt, dim1: typing.SupportsInt) -> None
__init__(self: tensorrt.tensorrt.Dims2, shape: collections.abc.Sequence[typing.SupportsInt]) -> None
DimsHW¶
- class tensorrt.DimsHW(*args, **kwargs)¶
Structure to define 2D shape with height and width.
- Variables:
h –
intThe first dimension (height).w –
intThe second dimension (width).
Overloaded function.
__init__(self: tensorrt.tensorrt.DimsHW) -> None
__init__(self: tensorrt.tensorrt.DimsHW, h: typing.SupportsInt, w: typing.SupportsInt) -> None
__init__(self: tensorrt.tensorrt.DimsHW, shape: collections.abc.Sequence[typing.SupportsInt]) -> None
Dims3¶
- class tensorrt.Dims3(*args, **kwargs)¶
Structure to define 3D shape.
Overloaded function.
__init__(self: tensorrt.tensorrt.Dims3) -> None
__init__(self: tensorrt.tensorrt.Dims3, dim0: typing.SupportsInt, dim1: typing.SupportsInt, dim2: typing.SupportsInt) -> None
__init__(self: tensorrt.tensorrt.Dims3, shape: collections.abc.Sequence[typing.SupportsInt]) -> None
Dims4¶
- class tensorrt.Dims4(*args, **kwargs)¶
Structure to define 4D tensor.
Overloaded function.
__init__(self: tensorrt.tensorrt.Dims4) -> None
__init__(self: tensorrt.tensorrt.Dims4, dim0: typing.SupportsInt, dim1: typing.SupportsInt, dim2: typing.SupportsInt, dim3: typing.SupportsInt) -> None
__init__(self: tensorrt.tensorrt.Dims4, shape: collections.abc.Sequence[typing.SupportsInt]) -> None