Merged
Conversation
alalek
reviewed
May 14, 2021
| /** @brief Returns overall time for inference and timings (in ticks) for layers. | ||
| * Indexes in returned vector correspond to layers ids. Some layers can be fused with others, | ||
| * in this case zero ticks count will be return for that skipped layers. | ||
| * in this case zero ticks count will be return for that skipped layers. Not supported by CUDA backend. |
Member
There was a problem hiding this comment.
I believe OpenCV/CPU backend only supports this method properly.
Other backends are asynchronous (like OpenCL, CUDA) or they don't provide per-layer information because tasks are scheduled as sub-graphs.
Contributor
Author
There was a problem hiding this comment.
I don't have that knowledge. It would be helpful to indicate limited backend support, so no one else wastes time to find out the hard way.
Member
There was a problem hiding this comment.
It should be:
... DNN_BACKEND_OPENCV on DNN_TARGET_CPU only.
Contributor
Author
There was a problem hiding this comment.
Yes, I corrected it.
Contributor
|
@pauljurczak Any progress with the patch? |
getPerfProfile is not supported by the CUDA backend, see opencv#20077
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.
getPerfProfile is not supported by the CUDA backend, see #20077
Pull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
Patch to opencv_extra has the same branch name.