Layout Constructor
Constructs a Layout with static or dynamic layout information based on string representation.
Namespace: OpenVinoSharpAssembly: OpenVINO_CSharp_API (in OpenVINO_CSharp_API.dll) Version: 2024.3.0.2+a9617c0f8f80882646d0eba11b88ae6cb17b3fb8
public Layout(
string layout_desc
)
Parameters
- layout_desc String
-
The string used to construct Layout from.
The string representation can be in the following form:
- can define order and meaning for dimensions "NCHW"
- partial layout specialization:
- "NC?" defines 3 dimensional layout, first two NC, 3rd one is not defined
- "N...C" defines layout with dynamic rank where 1st dimension is N, last one is C
- "NC..." defines layout with dynamic rank where first two are NC, others are not
defined
- only order of dimensions "adbc" (0312)
- Advanced syntax can be used for multi-character names like "[N,C,H,W,...,CustomName]"