Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
90 Views

Unsupported layer logsoftmax in pytorch model while converting it to IR format using OpenVINO

Hi 

I have created a model which has a log softmax layer at the end, I have trained and converted the model to onnx format.

But while converting it to IR format using OpenVINO I'm getting error as below:

[ ERROR ] 
[ ERROR ] It can happen due to bug in custom shape infer function <UNKNOWN>.
[ ERROR ] Or because the node inputs have incorrect values/shapes.
[ ERROR ] Or because input shapes are incorrect (embedded to the model or passed via --input_shape).
[ ERROR ] Run Model Optimizer with --log_level=DEBUG for more information.
[ ERROR ] There is no registered "infer" function for node "LogSoftmax_177" with op = "LogSoftmax". Please implement this function in the extensions. 
For more information please refer to Model Optimizer FAQ (https://docs.openvinotoolkit.org/latest/_docs_MO_DG_prepare_model_Model_Optimizer_FAQ.html), question #37. 
Stopped shape/value propagation at "LogSoftmax_177" node. 
For more information please refer to Model Optimizer FAQ (https://docs.openvinotoolkit.org/latest/_docs_MO_DG_prepare_model_Model_Optimizer_FAQ.html), question #38. 
Exception occurred during running replacer "REPLACEMENT_ID" (<class 'extensions.middle.PartialInfer.PartialInfer'>): There is no registered "infer" function for node "LogSoftmax_177" with op = "LogSoftmax". Please implement this function in the extensions. 
For more information please refer to Model Optimizer FAQ (https://docs.openvinotoolkit.org/latest/_docs_MO_DG_prepare_model_Model_Optimizer_FAQ.html), question #37. 
Stopped shape/value propagation at "LogSoftmax_177" node. 
For more information please refer to Model Optimizer FAQ (https://docs.openvinotoolkit.org/latest/_docs_MO_DG_prepare_model_Model_Optimizer_FAQ.html), question #38.

 

Can anyone please tell me how to solve this issue!

0 Kudos
2 Replies
Highlighted
Moderator
75 Views

Greetings,


First and foremost, before you try to convert, you need to ensure that the topology/models are supported by openvino. You can refer here: https://docs.openvinotoolkit.org/latest/openvino_docs_MO_DG_prepare_model_convert_model_Convert_Mode...


Once you are sure, you can refer to this video for detailed convertion progress: https://www.youtube.com/watch?v=cbdS3BjjbaQ


You can also refer to here if these models are relevant to yours:

  1. https://docs.openvinotoolkit.org/latest/openvino_docs_MO_DG_prepare_model_convert_model_onnx_specifi...
  2. https://docs.openvinotoolkit.org/latest/openvino_docs_MO_DG_prepare_model_convert_model_onnx_specifi...


Sincerely,

Iffa


0 Kudos
Highlighted
Moderator
36 Views

Greetings,


Intel will no longer monitor this thread since we have provided a solution. If you need any additional information from Intel, please submit a new question. 


Sincerely,

Iffa


0 Kudos