Merge pull request #16648 from YashasSamaga:cuda4dnn-hotfix-i16467

This commit is contained in:
Alexander Alekhin
2020-02-24 18:22:06 +00:00
+4
View File
@@ -305,6 +305,10 @@ namespace cv { namespace dnn {
shape = shape_;
offset = 0;
shared_block = base->shared_block;
auto numel = total(shape_);
if (numel > shared_block->device.size())
shared_block->device.reset(numel);
}
static Ptr<BackendWrapper> create(Mat& m) {