mirror of
https://github.com/opencv/opencv.git
synced 2024-11-25 03:30:34 +08:00
Merge pull request #16647 from YashasSamaga:cuda4dnn-hotfix-i16568
This commit is contained in:
commit
8eafddf211
@ -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…
Reference in New Issue
Block a user