Fix Importer bug (#1541)
authorАндрей Шедько/AI Tools Lab /SRR/Assistant Engineer/삼성전자 <a.shedko@partner.samsung.com>
Mon, 17 Sep 2018 14:37:15 +0000 (17:37 +0300)
committerРоман Михайлович Русяев/AI Tools Lab /SRR/Staff Engineer/삼성전자 <r.rusyaev@samsung.com>
Mon, 17 Sep 2018 14:37:15 +0000 (17:37 +0300)
Found when testing 1 op models: `Im2Col` Layer uses the convolution parameter, as does
the `Deconvolution` (or `TransposedConvolution` layer). This resolves the issue.

Signed-off-by: Andrei Shedko <a.shedko@partner.samsung.com>
contrib/nnc/passes/caffe_frontend/caffe_model_visitor.cpp

index 5083140..bc93ce0 100644 (file)
@@ -43,7 +43,7 @@ void ModelVisitor::visit(const LayerParameter& lp)
   {
     processInputLayer(lp);
   }
-  else if (lp.has_convolution_param())
+  else if (lp.type() == "Convolution")
   {
     outputs = opCreator.createConv2D(inputs, params, lp.convolution_param());
   }