dnn: use OpenVINO 2021.4 defines#20325
Merged
opencv-pushbot merged 3 commits intoopencv:3.4from Jun 30, 2021
Merged
Conversation
alalek
commented
Jun 30, 2021
Comment on lines
+1018
to
+1024
| #if INF_ENGINE_VER_MAJOR_GE(INF_ENGINE_RELEASE_2021_4) | ||
| infRequest.SetCompletionCallback<std::function<void(InferenceEngine::InferRequest, InferenceEngine::StatusCode)>>( | ||
| [reqWrapper](InferenceEngine::InferRequest /*request*/, InferenceEngine::StatusCode status) | ||
| #else |
Member
Author
There was a problem hiding this comment.
@dkurt @ilya-lavrenov Could you please take a look on this replacement of deprecated IInferRequest?
modules/dnn/src/ie_ngraph.cpp
Outdated
| [](InferenceEngine::IInferRequest::Ptr request, InferenceEngine::StatusCode status) | ||
| #if INF_ENGINE_VER_MAJOR_GE(INF_ENGINE_RELEASE_2021_4) | ||
| infRequest.SetCompletionCallback<std::function<void(InferenceEngine::InferRequest, InferenceEngine::StatusCode)>>( | ||
| [reqWrapper](InferenceEngine::InferRequest /*request*/, InferenceEngine::StatusCode status) |
Contributor
There was a problem hiding this comment.
- callback here holds
reqWrapper infRequestholds callback
We can have multiple problems with this. We don't need to hold request inside callback
Member
Author
There was a problem hiding this comment.
Thank you! Replaced to raw pointer in callback.
Member
Author
|
👍 |
This was referenced Jul 1, 2021
Merged
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
https://github.com/openvinotoolkit/openvino/releases/tag/2021.4
previous update #19770