Intel® Distribution of OpenVINO™ Toolkit
Community assistance about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all aspects of computer vision-related on Intel® platforms.

Unsupported property KEY_CPU_THREADS_NUM by CPU plugin

Corvid__Zabeth
1,161 Views

I try set numbers of threads for my OpenVINO application:

		// 5 - Load net
		std::map<std::string, std::string> mp;
		mp["KEY_CPU_THREADS_NUM"] = "1";
		core.AddExtension(extension_ptr, "CPU");
		InferenceEngine::ExecutableNetwork executable_network = core.LoadNetwork(network, "CPU", mp);

It raises an exception:

Exception raised: [NOT_FOUND] Unsupported property -KEY_CPU_THREADS_NUM by CPU plugin

Where is my error?

 

 

0 Kudos
3 Replies
Shubha_R_Intel
Employee
1,161 Views

Dear Corvid, Zabeth,

Please study mkldnn_plugin/config.cpp , mock_plugin.cpp and inference_engine_plugin_test.cpp. You have to do a SetConfig and I'm not seeing it in your code.

Hope it helps,

Thanks,

Shubha

0 Kudos
levchik__anatoly
Beginner
1,161 Views

Shubha R. (Intel) wrote:

Dear Corvid, Zabeth,

Please study mkldnn_plugin/config.cpp , mock_plugin.cpp and inference_engine_plugin_test.cpp. You have to do a SetConfig and I'm not seeing it in your code.

Hope it helps,

Thanks,

Shubha

For this fragment with Python API:

    plugin = IEPlugin(device='CPU')
    exec_net = plugin.load(network=net, config={
        'KEY_CPU_THREADS_NUM': '1',
    })

i'm getting:

  File "ie_api.pyx", line 85, in openvino.inference_engine.ie_api.IECore.load_network
  File "ie_api.pyx", line 92, in openvino.inference_engine.ie_api.IECore.load_network
RuntimeError: [NOT_FOUND] Unsupported property KEY_CPU_THREADS_NUM by CPU plugin

Same error i'm getting for:

    ie = IECore()
    exec_net = ie.load_network(network=net, device_name='CPU', config={
        'KEY_CPU_THREADS_NUM': '1',
    })

You've said that `SetConfig` should be performed. How to do it on Python API?

0 Kudos
levchik__anatoly
Beginner
1,161 Views

Shubha R. (Intel) wrote:

Dear Corvid, Zabeth,

Please study mkldnn_plugin/config.cpp , mock_plugin.cpp and inference_engine_plugin_test.cpp. You have to do a SetConfig and I'm not seeing it in your code.

Hope it helps,

Thanks,

Shubha

 

test

0 Kudos
Reply