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

Corecompile_model(String, String, DictionaryString, String) Method

Reads a model and creates a compiled model from the IR/ONNX/PDPD file.

Definition

Namespace: OpenVinoSharp
Assembly: OpenVINO_CSharp_API (in OpenVINO_CSharp_API.dll) Version: 2024.3.0.2+a9617c0f8f80882646d0eba11b88ae6cb17b3fb8
C#
public CompiledModel compile_model(
	string model_path,
	string device_name,
	Dictionary<string, string> properties = null
)

Parameters

model_path  String
Path to a model.
device_name  String
Name of a device to load a model to.
properties  DictionaryString, String  (Optional)
Optional map of pairs: (property name, property value) relevant only for this load operation.

Return Value

CompiledModel
A compiled model.

Remarks

This can be more efficient than using the Core::read_model + Core::compile_model(model_in_memory_object) flow, especially for cases when caching is enabled and a cached model is availab

See Also