Error when renaming a node on dev
What commit version of aidge do you use
-
aidge_core
: dev
Problem description
I get an error when renaming a node saying it already exists in a no-name graph but it should not exist at the moment.
import aidge_core
model = aidge_core.sequential([
aidge_core.FC(in_channels=32*32*3, out_channels=512, name='0'),
aidge_core.ReLU(name='1'),
])
for node in model.get_nodes():
print(node.name())
node.set_name(node.name() + "_lower")
Result:
0
Assertion failed: mNodeRegistry.find(newName) != mNodeRegistry.end() in C:\Users\AL253370\Documents\Projets\DeepGreen\aidge\aidge\aidge_core\include\aidge/graph/GraphView.hpp:411
Name 0_lower is already used in graph .
Traceback (most recent call last):
File "C:\Users\AL253370\Documents\Projets\DeepGreen\tuto_aidge\bug.py", line 10, in <module>
node.set_name(node.name() + "_lower")
RuntimeError: Name 0_lower is already used in graph .
This works on main and used to work a few commits back on dev as well.