Skip to content
Snippets Groups Projects
Commit 02c2276f authored by Cyril Moineau's avatar Cyril Moineau
Browse files

Update some log messages and fix small typo in Node.hpp

parent fd853467
No related branches found
No related tags found
1 merge request!297Reshape forward dims
......@@ -326,7 +326,7 @@ public:
* @param otherInId ID of the other Node input to connect to the current Node.
* Default to the first available data input.
*
* @note otherNode shared_ptr is passed by refenrece in order to be able to detect
* @note otherNode shared_ptr is passed by reference in order to be able to detect
* possible dangling connection situations in debug using ref counting.
*/
void addChild(const NodePtr& otherNode,
......@@ -507,7 +507,11 @@ private:
* @param outId
* @param otherInId
*
<<<<<<< HEAD
* @note otherNode shared_ptr is passed by refenrece in order to be able to detect
=======
* @note otherNode shared_ptr is passed by reference in order to be able to detect
>>>>>>> 3a88aa7d (Update some log messages and fix small typo in Node.hpp)
* possible dangling connection situations in debug using ref counting.
*/
void addChildOp(const NodePtr& otherNode, const IOIndex_t outId,
......
......@@ -574,8 +574,7 @@ bool Aidge::GraphView::forwardDims(const std::vector<std::vector<Aidge::DimSize_
Log::debug("Trying to constant fold the graph");
// Shape are folded if we don't find back the node in the graph
if(constantFolding(shared_from_this(), true)){
Log::notice("Shape node {} (of type {}) was folded.", nodePtr->name(), nodePtr->type());
Log::debug("Resetting list of nodes to graph inputs");
Log::notice("Constant folding worked, resetting list of nodes to graph inputs.");
// Graph was modified during constant folding
// We re-propagate dims starting from the entry of the graph
nextList = inputNodes();
......@@ -595,7 +594,7 @@ bool Aidge::GraphView::forwardDims(const std::vector<std::vector<Aidge::DimSize_
Log::debug("Breaking loop to restart from the beginning");
break;
}else{
Log::debug("Shape node {} (of type {}) was not folded.", nodePtr->name(), nodePtr->type());
Log::debug("Constant folding fail to fold any nodes.");
}
}
// Recompute every time, even if it was already computed in a
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment