- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am looking for the python code implementation / reference where we can infer the respective layers using OpenVINO ? For Example-
after loading IR into Plugin
for l in net.layers.values():
if l.name == "Layer1":
l.affinity = "FPGA"
if l.name == "Layer2":
l.affinity = "CPU"
exec_net = plugin.load(network=net)
res = exec_net.infer(inputs={input_blob: image})
Is it possible to do ?
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Under deployment_tools\inference_engine\samples\python_samples there is affinity_setting_demo.py which should give you a good starting point.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for the response. How to read the inputs and output data passing for layers during inference ? Is there any API to check ?
![](/skins/images/D3C0B914909A6564BBB97F4AD1ED1973/responsive_peak/images/icon_anonymous_message.png)
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page