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 primitive of type: Gather

Saito__Jun
Beginner
430 Views

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
430 Views

Dear Saito, Jun,

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

Thanks,

Shubha

 

0 Kudos
JYang127
Beginner
430 Views

Hi Saito, Jun,

You need to add_cpu_extension if you use CPU plugin.

plugin.add_cpu_extension('cpu_extension.dll')

 

0 Kudos
Reply