Commit 43a907dd authored by Alexander Alekhin's avatar Alexander Alekhin

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

parents 8eafddf2 5e082ab8
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment