From 21ed8924898bb9d122dffe051d73862d33db24ab Mon Sep 17 00:00:00 2001 From: Dmitry Kurtaev Date: Wed, 8 Apr 2020 12:09:45 +0300 Subject: [PATCH] Fix Elu import from ONNX --- modules/dnn/src/onnx/onnx_importer.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/dnn/src/onnx/onnx_importer.cpp b/modules/dnn/src/onnx/onnx_importer.cpp index ec2d2c4c25..1beea181f2 100644 --- a/modules/dnn/src/onnx/onnx_importer.cpp +++ b/modules/dnn/src/onnx/onnx_importer.cpp @@ -777,6 +777,10 @@ void ONNXImporter::populateNet(Net dstNet) { layerParams.type = "ReLU"; } + else if (layer_type == "Elu") + { + layerParams.type = "ELU"; + } else if (layer_type == "PRelu") { layerParams.type = "PReLU"; -- GitLab