G-API: Added reshape() functionality to CPU backend#21669
G-API: Added reshape() functionality to CPU backend#21669opencv-pushbot merged 1 commit intoopencv:4.xfrom
Conversation
AsyaPronina
left a comment
There was a problem hiding this comment.
Do we need to expand tests for stateful kernels with reshape test?
ee2cfd3 to
3d46ee2
Compare
@AsyaPronina, added an appropriate test, thanks! |
| // of this distribution and at http://opencv.org/license.html. | ||
| // | ||
| // Copyright (C) 2018-2020 Intel Corporation | ||
| // Copyright (C) 2018-2021 Intel Corporation |
| } | ||
| } | ||
|
|
||
| void cv::gimpl::GCPUExecutable::reshape(ade::Graph&, const GCompileArgs&) { |
There was a problem hiding this comment.
I think, it's needed to handle GCompileArgs as well, because stateful kernels use them:
https://github.com/opencv/opencv/blob/4.x/modules/gapi/src/backends/cpu/gcpubackend.cpp#L175
I'd propose to add test on that case
3d46ee2 to
06084a8
Compare
06084a8 to
3203393
Compare
3203393 to
ecb3040
Compare
| } | ||
| } | ||
|
|
||
| makeReshape(); |
There was a problem hiding this comment.
I believe this method call should be commented in the same way as the below one -- to clearly outline its intention and why it is here.
AsyaPronina
left a comment
There was a problem hiding this comment.
Thanks a lot for your efforts!!
Thanks a lot, perfect tests!! |
|
@alalek could you proceed with the merge please? |
Summary
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.
Build configuration