1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 15:53:03 +04:00

Fixed 3 issues found by static analysis

This commit is contained in:
Maksim Shabunin
2017-12-15 17:28:38 +03:00
parent 62359f70ff
commit 1033f2b1bd
3 changed files with 4 additions and 1 deletions
+2
View File
@@ -655,6 +655,8 @@ struct Net::Impl
fusion = true;
preferableBackend = DNN_BACKEND_DEFAULT;
preferableTarget = DNN_TARGET_CPU;
blobManager.setPreferableBackend(DNN_BACKEND_DEFAULT);
blobManager.setPreferableTarget(DNN_TARGET_CPU);
}
Ptr<DataLayer> netInputLayer;
@@ -783,6 +783,7 @@ public:
if( IS_POWER_LAYER(activ) )
{
Ptr<PowerLayer> activ_power = activ.dynamicCast<PowerLayer>();
CV_Assert(activ_power);
a = activ_power->scale;
b = activ_power->shift;
}