System information (version)
- OpenCV => 4.4.0, 3.4.11
- Operating System / Platform => Ubuntu 18.04
- Compiler => gcc 7.5.0
Detailed description
OpenCL backend is fusing unsupported eltwise configurations with convolution.
Steps to reproduce
Disabled tests from #17976 can reproduce this bug. Relevant tests have // bug: https://github.com/opencv/opencv/issues/17945 comment just before applying the skip test tag.
The tests that won't fail are those where the op is SUM without coefficients. OpenCL backend is fusing other incompatible eltwise configurations with convolution even though it is not supported.
I wasn't able to fuse eltwise for the CUDA backend because I had trouble getting eltwise configuration in fuseLayers. I tried to find what OpenCL backend was doing but I couldn't find any check. Turns out it simply isn't there and this is a bug.
Issue submission checklist
System information (version)
Detailed description
OpenCL backend is fusing unsupported eltwise configurations with convolution.
Steps to reproduce
Disabled tests from #17976 can reproduce this bug. Relevant tests have
// bug: https://github.com/opencv/opencv/issues/17945comment just before applying the skip test tag.The tests that won't fail are those where the op is
SUMwithout coefficients. OpenCL backend is fusing other incompatible eltwise configurations with convolution even though it is not supported.I wasn't able to fuse eltwise for the CUDA backend because I had trouble getting eltwise configuration in
fuseLayers. I tried to find what OpenCL backend was doing but I couldn't find any check. Turns out it simply isn't there and this is a bug.Issue submission checklist
answers.opencv.org, Stack Overflow, etc and have not found solution