mirror of
https://github.com/opencv/opencv.git
synced 2025-06-07 17:44:04 +08:00
Merge pull request #20586 from alalek:issue_20585
This commit is contained in:
commit
77a5c43d50
@ -1257,8 +1257,11 @@ bool OCL4DNNConvSpatial<float>::verifyResult(const UMat &bottom,
|
|||||||
else if (config->tested)
|
else if (config->tested)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
int32_t sz[4] = {numImages, num_output_, output_h_, output_w_};
|
//int32_t sz[4] = {numImages, num_output_, output_h_, output_w_};
|
||||||
top.zeros(4, sz, (use_half_) ? CV_16SC1 : CV_32FC1);
|
CV_CheckEQ(top.total(), (size_t)numImages * num_output_ * output_h_ * output_w_, "");
|
||||||
|
CV_CheckTypeEQ(top.type(), (use_half_) ? CV_16SC1 : CV_32FC1, "");
|
||||||
|
top.setTo(Scalar::all(0));
|
||||||
|
|
||||||
bool saved_tuned = tuned_;
|
bool saved_tuned = tuned_;
|
||||||
tuned_ = false;
|
tuned_ = false;
|
||||||
convolve(bottom, top, weight, bias, numImages, config);
|
convolve(bottom, top, weight, bias, numImages, config);
|
||||||
|
Loading…
Reference in New Issue
Block a user