mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 07:13:02 +04:00
Untrainable version of Scale layer from Caffe
This commit is contained in:
@@ -268,6 +268,8 @@ public:
|
||||
|
||||
bool setScale(const Ptr<ScaleLayer>& layer)
|
||||
{
|
||||
if (layer.empty() || layer->blobs.empty())
|
||||
return false;
|
||||
scaleLayer = layer;
|
||||
// we will need to re-compute the weights with the scaling
|
||||
// coefficients taken into account
|
||||
@@ -276,7 +278,7 @@ public:
|
||||
newWeightAndBias = true;
|
||||
fusedBias = false;
|
||||
#endif
|
||||
return !scaleLayer.empty();
|
||||
return true;
|
||||
}
|
||||
|
||||
virtual Ptr<BackendNode> initHalide(const std::vector<Ptr<BackendWrapper> > &inputs)
|
||||
|
||||
Reference in New Issue
Block a user