mirror of
https://github.com/opencv/opencv.git
synced 2025-06-07 17:44:04 +08:00
Merge pull request #20453 from rogday:onnx_importer_fix
Split layer dispatch into functions in ONNXImporter * split layer dispatch into functions * fixes * identation and comment fixes * fix constness
This commit is contained in:
parent
d83901e665
commit
cff0168f3a
@ -14,6 +14,7 @@ Mutex& getInitializationMutex();
|
|||||||
void initializeLayerFactory();
|
void initializeLayerFactory();
|
||||||
|
|
||||||
namespace detail {
|
namespace detail {
|
||||||
|
#define CALL_MEMBER_FN(object, ptrToMemFn) ((object).*(ptrToMemFn))
|
||||||
|
|
||||||
struct NetImplBase
|
struct NetImplBase
|
||||||
{
|
{
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -2869,7 +2869,7 @@ void TFImporter::parseNode(const tensorflow::NodeDef& layer)
|
|||||||
DispatchMap::const_iterator iter = dispatch.find(type);
|
DispatchMap::const_iterator iter = dispatch.find(type);
|
||||||
if (iter != dispatch.end())
|
if (iter != dispatch.end())
|
||||||
{
|
{
|
||||||
((*this).*(iter->second))(net, layer, layerParams);
|
CALL_MEMBER_FN(*this, iter->second)(net, layer, layerParams);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user