mirror of
https://github.com/opencv/opencv.git
synced 2024-11-24 19:20:28 +08:00
Merge pull request #24751 from dkurt:d.kurtaev/hotfix_cuda_scale
[CUDA] Hotfix Scale with 1 parameter
This commit is contained in:
commit
f399bdfa1a
@ -128,6 +128,9 @@ namespace cv { namespace dnn { namespace cuda4dnn {
|
||||
|
||||
/* the scale shift operation might require broadcasting */
|
||||
const int end_axis = [&] {
|
||||
if (num_parameters == 1) {
|
||||
return static_cast<int>(axis + 1);
|
||||
}
|
||||
for (int endAxis = axis + 1; endAxis <= input.rank(); endAxis++) {
|
||||
if (input.size_range(axis, endAxis) == mid_size)
|
||||
return endAxis;
|
||||
|
Loading…
Reference in New Issue
Block a user