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

InputModelInfo Class

Information about model's input tensor. If all information is already included to loaded model, this info may not be needed. However it can be set to specify additional information about model, like 'layout'.

Definition

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

Example

Example of usage of model 'layout': Support model has input parameter with shape {1, 3, 224, 224} and user needs to resize input image to model's dimensions. It can be done like this

Constructors

InputModelInfo Default construction through InputModelInfo pointer.

Properties

Ptr [public]InputModelInfo class pointer.

Methods

Dispose Release unmanaged resources
Finalize Default destructor
(Overrides ObjectFinalize)
set_layout Set layout for model's input tensor. This version allows chaining for Lvalue objects

Fields

m_ptr [private]InputModelInfo class pointer.

See Also