2022-03-18 16:31:36 +08:00
|
|
|
#include <openvino/openvino.hpp>
|
2020-09-22 18:01:48 +03:00
|
|
|
|
2023-01-16 11:02:17 +04:00
|
|
|
int main() {
|
2020-09-22 18:01:48 +03:00
|
|
|
//! [part5]
|
2022-03-18 16:31:36 +08:00
|
|
|
ov::Core core;
|
2022-06-08 16:56:37 +02:00
|
|
|
|
|
|
|
|
// // Read a model and compile it on MULTI
|
2023-03-08 14:29:08 +01:00
|
|
|
ov::CompiledModel compileModel = core.compile_model("sample.xml", "MULTI:GPU,CPU");
|
2022-06-08 16:56:37 +02:00
|
|
|
|
2022-03-20 10:44:33 +03:00
|
|
|
// query the optimal number of requests
|
2022-03-18 16:31:36 +08:00
|
|
|
uint32_t nireq = compileModel.get_property(ov::optimal_number_of_infer_requests);
|
2020-09-22 18:01:48 +03:00
|
|
|
//! [part5]
|
|
|
|
|
return 0;
|
|
|
|
|
}
|