Merge pull request #5781 from jet47:fix-cuda-createContinuous

This commit is contained in:
Vadim Pisarevsky
2015-12-16 10:37:55 +00:00
2 changed files with 48 additions and 1 deletions

View File

@@ -260,7 +260,7 @@ namespace
{
const int area = rows * cols;
if (obj.empty() || obj.type() != type || !obj.isContinuous() || obj.size().area() < area)
if (obj.empty() || obj.type() != type || !obj.isContinuous() || obj.size().area() != area)
obj.create(1, area, type);
obj = obj.reshape(obj.channels(), rows);