1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 15:23:05 +04:00

Merge pull request #15395 from l-bat:fully_connected

* Fix IE FullyConnected layer

* Fix MyriadX
This commit is contained in:
Lubov Batanina
2019-08-29 10:52:02 +03:00
committed by Alexander Alekhin
parent 6506c19ac3
commit 90eb529bc4
2 changed files with 6 additions and 3 deletions
@@ -449,7 +449,7 @@ public:
InferenceEngine::Builder::Layer l = ieLayer;
addConstantData("weights", wrapToInfEngineBlob(blobs[0], {(size_t)blobs[0].size[0], (size_t)blobs[0].size[1], 1, 1}, InferenceEngine::Layout::OIHW), l);
if (blobs.size() > 1)
if (bias)
addConstantData("biases", wrapToInfEngineBlob(blobs[1], {(size_t)outNum}, InferenceEngine::Layout::C), l);
return Ptr<BackendNode>(new InfEngineBackendNode(l));