Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Operators unsupported #24609

Open
3 tasks done
JoewVm opened this issue May 21, 2024 · 5 comments
Open
3 tasks done

[Bug]: Operators unsupported #24609

JoewVm opened this issue May 21, 2024 · 5 comments
Assignees
Labels

Comments

@JoewVm
Copy link

JoewVm commented May 21, 2024

OpenVINO Version

OpenVINO 2024.1.0

Operating System

Windows System

Device used for inference

CPU

Framework

PyTorch

Model used

No response

Issue description

Operators unsupported issue when using OpenVINO to convert pytorch model to openvino model.
当使用OpenVINO将pytorch模型转换为openvino模型时出现算子不支持的问题。
image

Step-by-step reproduction

No response

Relevant log output

Traceback (most recent call last):
  File "d:\dachuang\BYHE-master-mod3\transformer.py", line 41, in <module>
    ov_model = ov.convert_model(
  File "D:\anaconda3\envs\rppg\lib\site-packages\openvino\tools\ovc\convert.py", line 100, in convert_model
    ov_model, _ = _convert(cli_parser, params, True)
  File "D:\anaconda3\envs\rppg\lib\site-packages\openvino\tools\ovc\convert_impl.py", line 547, in _convert
    raise e
  File "D:\anaconda3\envs\rppg\lib\site-packages\openvino\tools\ovc\convert_impl.py", line 489, in _convert
    ov_model = driver(argv, {"conversion_parameters": non_default_params})
  File "D:\anaconda3\envs\rppg\lib\site-packages\openvino\tools\ovc\convert_impl.py", line 240, in driver
    ov_model = moc_emit_ir(prepare_ir(argv), argv)
  File "D:\anaconda3\envs\rppg\lib\site-packages\openvino\tools\ovc\convert_impl.py", line 189, in prepare_ir
    ov_model = moc_pipeline(argv, moc_front_end)
  File "D:\anaconda3\envs\rppg\lib\site-packages\openvino\tools\ovc\moc_frontend\pipeline.py", line 244, in moc_pipeline
    ov_model = moc_front_end.convert(input_model)
  File "D:\anaconda3\envs\rppg\lib\site-packages\openvino\frontend\frontend.py", line 18, in convert
    converted_model = super().convert(model)
openvino._pyopenvino.OpConversionFailure: Check 'is_conversion_successful' failed at src\frontends\pytorch\src\frontend.cpp:143:
FrontEnd API failed with OpConversionFailure:
Model wasn't fully converted. Failed operations detailed log:
-- prim::Constant with a message:
Exception happened during conversion of operation prim::Constant with schema (no schema)
Unable to cast Python instance of type <class 'NoneType'> to C++ type '?' (#define PYBIND11_DETAILED_ERROR_MESSAGES or compile in debug mode for details)
-- prim::ListConstruct with a message:
Exception happened during conversion of operation prim::ListConstruct with schema (no schema)
Check '!input_shapes.empty()' failed at src\core\shape_inference\include\concat_shape_inference.hpp:17:
While validating node 'opset1::Concat Concat_758 () -> (dynamic[...])' with friendly_name 'Concat_758'

-- prim::ListUnpack with a message:
prim::ListUnpack: unsupported input node: opset1::Constant aten::size/ShapeOf () -> (i64[0])
-- prim::device with a message:
String constant cannot be converted to OpenVINO opset and should be removed by consuming operation.
Summary:
-- No conversion rule found for operations: aten::__contains__, aten::append, aten::split, prim::layout
-- Conversion is failed for: prim::Constant, prim::ListConstruct, prim::ListUnpack, prim::device

Issue submission checklist

  • I'm reporting an issue. It's not a question.
  • I checked the problem with the documentation, FAQ, open issues, Stack Overflow, etc., and have not found a solution.
  • There is reproducer code and related data files such as images, videos, models, etc.
@JoewVm JoewVm added bug Something isn't working support_request labels May 21, 2024
@mlukasze mlukasze added category: PyTorch FE OpenVINO PyTorch Frontend and removed bug Something isn't working labels May 21, 2024
@mlukasze
Copy link
Contributor

@mvafin could we create GFIs based on this request?

@andrei-kochin
Copy link
Contributor

@JoewVm thank you for reaching the OpenVINO!
Could you please share the model with us as obviously according to the error some layers are not supported but there might be some model issues as well

@andrei-kochin
Copy link
Contributor

@JoewVm any updates for us?

@JoewVm
Copy link
Author

JoewVm commented May 29, 2024

@JoewVm any updates for us?

Do you mean you need the complete program file for the model?

@mvafin
Copy link
Contributor

mvafin commented Jun 3, 2024

@JoewVm Did you provide example_input argument to convert_model? Those operations look like they are generated by scripting, which happens when example_input is not provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants