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

Benchmarksync_benchmark Method

This sample demonstrates how to estimate performance of a model using Synchronous Inference Request API.

Definition

Namespace: OpenVinoSharp.Extensions
Assembly: OpenVINO_CSharp_API_Extensions (in OpenVINO_CSharp_API_Extensions.dll) Version: 1.0.2+a13b433d33f957705f82a74ca14fa17017145e92
C#
public static int sync_benchmark(
	string model_path,
	string device_name = "CPU"
)

Parameters

model_path  String
The inference model path.
device_name  String  (Optional)
The device name, default="CPU".

Return Value

Int32
Running status code.

See Also