Skip to content

DNN(Int8): improper UMat constructor is used #20888

@alalek

Description

@alalek

Code

UMat inputFp32(shape(inputs[0]), CV_32F);

selects this constructor:

// FIXIT copyData=false is not implemented, drop this in favor of cv::Mat (OpenCV 5.0)
//! builds matrix from std::vector with or without copying the data
template<typename _Tp> explicit UMat(const std::vector<_Tp>& vec, bool copyData=false);

which is not expected by coding context (tried to allocate ND shape).


/cc @vpisarev @SamFC10

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions