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

Bell/fix onnx multi output failure #10

Open
wants to merge 20 commits into
base: river/fix_segmentfault_plugin_api_2.0
Choose a base branch
from

Conversation

songbell
Copy link

@songbell songbell commented Jul 3, 2023

Details:

  • reuse port tensors check_tensors

Tickets:

  • ticket-id

@@ -263,10 +263,10 @@ void ov::ISyncInferRequest::allocate_tensor(const ov::Output<const ov::Node>& po
void ov::ISyncInferRequest::check_tensors() const {
const auto& inputs = m_compiled_model->inputs();
for (size_t i = 0; i < inputs.size(); i++) {
check_tensor(inputs[i], m_tensors.at(inputs[i].get_tensor_ptr()));
check_tensor(inputs[i], get_ref_tensor(inputs[i]));
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

get_ref_tensor() can avoid tensor mismatch issue, but m_tensors.at(inputs[i].get_tensor_ptr()) itself should not have any problem?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can see that the compiled_mode are different:

  1. original model:
    image

  2. IF not create input/output port, the final compile model:
    image

  3. If create input/output port, the final compile model, do in this PR, the final compile model will keep no change after tranformation

image

It seems that create input/output port will effect on the transformation, it is surprising.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

did you remove the lines of set_names?

Signed-off-by: fishbell <bell.song@intel.com>
Signed-off-by: fishbell <bell.song@intel.com>
Signed-off-by: fishbell <bell.song@intel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants