[export_cpp] Wrong node naming for parallel branches
What commit version of aidge do you use
-
aidge_core: d31f76fae1ccc8c08d759998a427f1902ab49431 -
aidge_export_cpp: aidge_export_cpp@566e26e0
Problem description
The export of my model works fine but does not compile because of a naming problem I do not understand.
Weird : When I use model_explore.visualize before export, then it compiles fine. I suppose that model_explorer rename the nodes correctly ?
I think it may come from the fact that my model has X parallel branches that are a clone an initial graph.
What should I do to properly name the nodes without using the model_explorer workaround ?
Reproducible example code
see aidge_core#280 (moved) , this is the tiling problem almost solved now.
On tiling_issue_name.py, the exported cpp model compiles without errors only when running the visualize line 179.
Log
that kind of compiling error (redeclaration of...):
dnn/src/forward.cpp:6948:12: error: redeclaration of ‘float* node_Relu_23_output_0’
6948 | float* node_Relu_23_output_0 = (float*) (mem + NODE_RELU_23_OUTPUT_0_MEM_OFFSET);
| ^~~~~~~~~~~~~~~~~~~~~
dnn/src/forward.cpp:2462:12: note: ‘float* node_Relu_23_output_0’ previously declared here
2462 | float* node_Relu_23_output_0 = (float*) (mem + NODE_RELU_23_OUTPUT_0_MEM_OFFSET);