reimplement onnx refactor for master

pull/20478/head
Smirnov Egor 4 years ago
parent e9db7fea5b
commit 27392f832d
  1. 1
      modules/dnn/src/dnn_common.hpp
  2. 2999
      modules/dnn/src/onnx/onnx_importer.cpp
  3. 2
      modules/dnn/src/tensorflow/tf_importer.cpp

@ -14,6 +14,7 @@ Mutex& getInitializationMutex();
void initializeLayerFactory();
namespace detail {
#define CALL_MEMBER_FN(object, ptrToMemFn) ((object).*(ptrToMemFn))
class NotImplemented : public Layer
{

File diff suppressed because it is too large Load Diff

@ -2894,7 +2894,7 @@ void TFImporter::parseNode(const tensorflow::NodeDef& layer)
DispatchMap::const_iterator iter = dispatch.find(type);
if (iter != dispatch.end())
{
((*this).*(iter->second))(net, layer, layerParams);
CALL_MEMBER_FN(*this, iter->second)(net, layer, layerParams);
}
else if (!DNN_DIAGNOSTICS_RUN || !layerHandler->handleMissing(layer))
{

Loading…
Cancel
Save