mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 07:43:03 +04:00
static analyzer issues
This commit is contained in:
@@ -936,6 +936,7 @@ struct InferList: public cv::detail::KernelTag {
|
||||
std::vector<cv::Mat> &out_vec = ctx->outVecR<cv::Mat>(i);
|
||||
|
||||
IE::Blob::Ptr out_blob = req.GetBlob(ctx->uu.params.output_names[i]);
|
||||
GAPI_Assert(out_blob);
|
||||
|
||||
cv::Mat out_mat(cached_dims[i], toCV(out_blob->getTensorDesc().getPrecision()));
|
||||
// FIXME: Avoid data copy. Not sure if it is possible though
|
||||
@@ -1103,6 +1104,7 @@ struct InferList2: public cv::detail::KernelTag {
|
||||
std::vector<cv::Mat> &out_vec = ctx->outVecR<cv::Mat>(i);
|
||||
|
||||
IE::Blob::Ptr out_blob = req.GetBlob(ctx->uu.params.output_names[i]);
|
||||
GAPI_Assert(out_blob);
|
||||
|
||||
cv::Mat out_mat(cached_dims[i], toCV(out_blob->getTensorDesc().getPrecision()));
|
||||
// FIXME: Avoid data copy. Not sure if it is possible though
|
||||
|
||||
Reference in New Issue
Block a user