Merge pull request #16647 from YashasSamaga:cuda4dnn-hotfix-i16568

pull/16648/head
Alexander Alekhin 5 years ago
commit 8eafddf211
  1. 2
      modules/dnn/src/cuda4dnn/primitives/inner_product.hpp

@ -31,7 +31,7 @@ namespace cv { namespace dnn { namespace cuda4dnn {
: stream(std::move(stream_)), cublasHandle(std::move(handle)), axis{ axis }
{
weightsTensor = csl::makeTensorHeader<T>(weights);
CV_Assert(get_effective_rank(weightsTensor) == 2);
CV_Assert(get_effective_rank(weightsTensor) <= 2);
csl::copyMatToTensor<T>(weights, weightsTensor, stream);
if (!bias.empty())

Loading…
Cancel
Save