Skip to content

[export_cpp] Wrong node naming for parallel branches

What commit version of aidge do you use

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.

classifier_model.onnx

test_input.npy

tiling_issue_names.py

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);
Edited by Louis Lerbourg