[Fix] Checking nullptr on Node.cpp and ConstantFolding.cpp
2 unresolved threads
2 unresolved threads
Compare changes
Files
2+ 2
− 1
@@ -390,7 +390,8 @@ void Aidge::Node::resetConnections(bool includeLearnableParam) {
@@ -390,7 +390,8 @@ void Aidge::Node::resetConnections(bool includeLearnableParam) {
Debug log is unecessary.
child.first->getParents().size() > 0
check is weird, you are in the parent node you get the output and then check that the output has a parent?i was looking for a boolean method to do child.first->exists(child.second)
Ok but still the check is weird, you are in the parent so it not null.
changed this line in version 2 of the diff