mirror of
https://github.com/opencv/opencv.git
synced 2026-07-31 08:13:04 +04:00
Merge pull request #28574 from abhishek-gola:reduce_layer_empty_set
* added empty set support * accept unnamed dynamic dims * Fix for LSTM test failure * removed converToND * openvino failing test fix * ARM CI issue fix * ARM issue fix
This commit is contained in:
@@ -134,8 +134,16 @@ void Mat::convertTo(OutputArray dst, int type_, double alpha, double beta) const
|
||||
|
||||
if (empty())
|
||||
{
|
||||
int ddepth = CV_MAT_DEPTH(type_);
|
||||
if (ddepth < 0)
|
||||
ddepth = dst.fixedType() ? dst.depth() : depth();
|
||||
const int dtype = CV_MAKETYPE(ddepth, channels());
|
||||
|
||||
dst.release();
|
||||
dst.create(size(), type_ >= 0 ? type_ : type());
|
||||
if (dims <= 2)
|
||||
dst.create(size(), dtype);
|
||||
else
|
||||
dst.create(dims, size.p, dtype);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user