Please use. NET 5,. NET 6, NET 7,. NET 8, NET Framework 4.6, NET Framework 4.61, NET Framework 4.7, NET Framework 4.72, NET Framework 4.8, NET Framework 4.81, and. NET Core 3.1 versions

PartialShape Class

Class representing a shape that may be partially or totally dynamic.

Definition

Namespace: OpenVinoSharp
Assembly: OpenVINO_CSharp_API (in OpenVINO_CSharp_API.dll) Version: 2024.3.0.2+a9617c0f8f80882646d0eba11b88ae6cb17b3fb8
C#
public class PartialShape
Inheritance
Object    PartialShape

Remarks

Dynamic rank. (Informal notation: `?`)

Static rank, but dynamic dimensions on some or all axes. (Informal notation examples: `{1,2,?,4}`, `{?,?,?}`)

Static rank, and static dimensions on all axes. (Informal notation examples: `{1,2,3,4}`, `{6}`, `{}`)

Constructors

PartialShape(Dimension) Constructing partial shape by dimensions.
PartialShape(ListDimension) Constructing partial shape by dimensions.
PartialShape(Ovov_partial_shape) Constructing partial shape by ov_partial_shape.
PartialShape(Shape) Constructing static partial shape by shape.
PartialShape(Dimension, Dimension) Constructing dynamic partial shape by dimensions.
PartialShape(Dimension, ListDimension) Constructing dynamic partial shape by dimensions.
PartialShape(Int64, ListInt64) Constructing static partial shape by dimensions.
PartialShape(Int64, Int64) Constructing static partial shape by dimensions.

Methods

Finalize Default deconstruction.
(Overrides ObjectFinalize)
get_dimensions Get dimensions.
get_partial_shape Get ov_partial_shape
get_rank Get rank.
is_dynamic Check if this shape is dynamic.
is_static Check if this shape is static.
partial_shape_convert Convert partial shape to PartialShape class.
to_shape Convert partial shape without dynamic data to a static shape.
to_string Get partial shape string.

Fields

dimensions PartialShape dimensions.
rank PartialShape rank.

See Also