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

PrePostProcessor Class

Main class for adding pre- and post- processing steps to existing ov::Model

Definition

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

Remarks

This is a helper class for writing easy pre- and post- processing operations on ov::Model object assuming that any preprocess operation takes one input and produces one output. For advanced preprocessing scenarios, like combining several functions with multiple inputs/outputs into one, client's code can use transformation passes over ov::Model

Constructors

PrePostProcessor Default construction through Model.

Properties

Ptr [public]PrePostProcessor class pointer.

Methods

build Adds pre/post-processing operations to function passed in constructor
Dispose Release unmanaged resources
Finalize Default destructor
(Overrides ObjectFinalize)
input Gets input pre-processing data structure. Should be used only if model/function has only one input Using returned structure application's code is able to set user's tensor data (e.g layout), preprocess steps, target model's data
input(String) Gets input pre-processing data structure for input identified by it's tensor name
input(UInt64) Gets input pre-processing data structure for input identified by it's order in a model
output Gets output post-processing data structure. Should be used only if model/function has only one output Using returned structure application's code is able to set model's output data, post-process steps, user's tensor data (e.g layout)
output(String) Gets output post-processing data structure for output identified by it's tensor name
output(UInt64) Gets output post-processing data structure for output identified by it's order in a model

Fields

m_ptr [private]PrePostProcessor class pointer.

See Also