- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I exported a model from PyTorch to ONNX.
The model includes Max and Sqrt operations. During optimization I get this error:
There is no registered "infer" function for node "112" with op = "Sqrt". Please implement this function in the extensions.
Is support for these operations expected in the near future?
How would I add custom operations?
Thanks
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Ohad,
indeed, we do not support those layers yet from ONNX. For creating custom layers, you should look at our documentation:
In your case, the extension should be inside: \deployment_tools\model_optimizer\extensions\front\onnx
You can already how Max and Sqrt are implemented through Tensorflow (deployment_tools\model_optimizer\extensions\front\tf). It should give you a good idea of the implementation for ONNX.
Best,
Severine
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear Ohad M.,
Unfortunately our documentation on Custom Layers is difficult to understand. Please read this forum post, which has helped many customers.
https://software.intel.com/en-us/forums/computer-vision/topic/805980
Thanks,
Shubha
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page