Preparations for enabling 1D support for Conv and Pool operations on CUDA#19057
Preparations for enabling 1D support for Conv and Pool operations on CUDA#19057opencv-pushbot merged 1 commit intoopencv:3.4from
Conversation
| String name = layer.name(); | ||
| String type = layer.type(); | ||
| LayerParams layerParams; | ||
| layerParams.set("framework", "caffe"); |
There was a problem hiding this comment.
Agree.
Lets don't push information about frameworks on "execution" level. Let importers only to handle framework specifics.
If it is necessary, please add another flag which describes behavior instead of framework.
P.S. Especially we don't want to handle framework versions during the execution.
| } | ||
| if (parameter.size() == 1) | ||
| parameter.resize(2, parameter[0]); | ||
|
|
modules/dnn/test/test_layers.cpp
Outdated
| } | ||
|
|
||
| layer->finalize(inp, outp); | ||
| layer->finalize(inp, outp); |
modules/dnn/test/test_layers.cpp
Outdated
| lp.set("group", group); | ||
| lp.set("stride", 1); | ||
| std::vector<int> stride(2, 1); | ||
| lp.set("stride", DictValue::arrayInt<int*>(stride.data(), stride.size())); |
There was a problem hiding this comment.
PR going to support Conv1D for CUDA but we already integrated Conv1D and it works with single value paddings, strides and kernel_size. So why for this backend we need to change common part?
There was a problem hiding this comment.
PR going to support Conv1D for CUDA but we already integrated Conv1D and it works with single value paddings, strides and kernel_size. So why for this backend we need to change common part?
This changes are needed for CUDA, but I think we should have the similar CUDA-independent logic for master and 3.4 branches
There was a problem hiding this comment.
How changes in tests are required to support specific backend?
Necessary logic should be handled by backend implementation itself.
Please put this on hold and complete #19058 first to see scope of the problem.
There was a problem hiding this comment.
changes in tests
I removed changes in tests. I just want to preserve the same code and logic for backend-independent parts in master and 3.4
9c258ff to
5e562fd
Compare
alalek
left a comment
There was a problem hiding this comment.
Need to re-check applied changes from https://github.com/opencv/opencv/pull/19058/files
| #define REMOVE_EXTRA_ELEM(vector)\ | ||
| if (vector.size() > 1)\ | ||
| vector.pop_back(); | ||
| REMOVE_EXTRA_ELEM(kernel_size); |
There was a problem hiding this comment.
There is no such code on "master" branch.
There was a problem hiding this comment.
@sl-sergei Any feedback?
@alalek I updated it, now everything should be ok
297f776 to
e2949c7
Compare
relates: #18862 #18783
Necessary changes for enabling Conv1D and Pool1D for CUDA in
masterbranch.