Community
cancel
Showing results for 
Search instead for 
Did you mean: 
207 Views

Unsupported property KEY_CPU_THREADS_NUM by CPU plugin

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
207 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

levchik__anatoly
Beginner
207 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?

levchik__anatoly
Beginner
207 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

Reply