Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Saito__Jun
Beginner
93 Views

Unsupported primitive of type: Gather

I converted my model from ONNX to OpenVino IR and then tried to set up inference on macOS 10.14.5 and Python 3.6.
I am stuck with the following error:

>>> Exec_net = plugin.load(network=net)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "ie_api.pyx", line 551, in openvino.inference_engine.ie_api.IEPlugin.load
  File "ie_api.pyx", line 561, in openvino.inference_engine.ie_api.IEPlugin.load
RuntimeError: Unsupported primitive of type: Gather name: GatherV2_1

According to the document here, it looks like OpenVino supports Gather in ONNX.
I am using OpenVino 2019.2.242.

Please let me know what I am doing wrong. I am happy to share my model if you can make this thread private.

0 Kudos
2 Replies
Shubha_R_Intel
Employee
93 Views

Dear Saito, Jun,

I have PM'd you so that you may send me your model privately.

Thanks,

Shubha

 

JYang127
Beginner
93 Views

Hi Saito, Jun,

You need to add_cpu_extension if you use CPU plugin.

plugin.add_cpu_extension('cpu_extension.dll')