diff --git a/modules/dnn/src/cuda4dnn/primitives/matmul.hpp b/modules/dnn/src/cuda4dnn/primitives/matmul.hpp index e4ab3d2721..f5aa7f0a7f 100644 --- a/modules/dnn/src/cuda4dnn/primitives/matmul.hpp +++ b/modules/dnn/src/cuda4dnn/primitives/matmul.hpp @@ -38,8 +38,8 @@ namespace cv { namespace dnn { namespace cuda4dnn { const std::vector>& outputs, csl::Workspace& workspace) override { - CV_Assert((inputs.size() == 2 && constTensor.empty() || - inputs.size() == 1 && !constTensor.empty()) && outputs.size() == 1); + CV_Assert(((inputs.size() == 2 && constTensor.empty()) || + (inputs.size() == 1 && !constTensor.empty())) && outputs.size() == 1); auto input1_wrapper = inputs[0].dynamicCast(); auto input1 = input1_wrapper->getView();