1
0
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:
Abhishek Gola
2026-03-01 17:49:44 +05:30
committed by GitHub
parent b54d0fbbbf
commit 31cab2a055
10 changed files with 141 additions and 40 deletions
+9 -1
View File
@@ -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;
}