- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page