Skip to content
Snippets Groups Projects
Commit a1a83f25 authored by Maxence Naud's avatar Maxence Naud
Browse files

Fix test_scheduler test and put back warning in Node

parent ebdf8b1e
No related branches found
No related tags found
2 merge requests!105version 0.2.0,!100fix/scheduler_exec_time
Pipeline #42555 passed
......@@ -173,6 +173,7 @@ void Aidge::Node::setInputId(const IOIndex_t inId, const IOIndex_t newNodeoutId)
"Input index ({}) is out of bound ({}) for node {} (of type {})",
inId, nbInputs(), name(), type());
if (mIdOutParents[inId] != gk_IODefaultIndex) {
Log::warn("Warning: filling a Tensor already attributed\n");
auto originalParent = input(inId);
// remove original parent reference to child
// find the output ID for original Parent
......@@ -393,17 +394,17 @@ std::set<Aidge::NodePtr> Aidge::Node::getNodeDelta(int delta, std::set<Aidge::No
// namespace Aidge {
// std::ostream& operator << (std::ostream& os, Aidge::Node& n) {
// using namespace std;
// os << "Node :\tName :\t\"" << n.name() << "\"\tType : \"" << n.getOperator()->type()<< "\"\tIN/OUTputs : "<< n.nbInputs() <<"/"<< n.nbOutputs() <<endl;
// os << "Node :\tName :\t\"" << n.name() << "\"\tType : \"" << n.getOperator()->type()<< "\"\tIN/OUTputs : "<< n.nbInputs() <<"/"<< n.nbOutputs() <<endl;
// os << "\tParents :\t" ;
// for (const auto & p : n.getParents())
// {
// os << "\"" <<p->name() << "\"\t";
// os << "\"" <<p->name() << "\"\t";
// }
// os << endl;
// os << "\tChildren :\t" ;
// for (const auto & c : n.getChildren())
// {
// os << "\"" << c->name() << "\"\t";
// os << "\"" << c->name() << "\"\t";
// }
// os << endl;
// return os;
......
......@@ -44,6 +44,7 @@ TEST_CASE("randomScheduling", "[Scheduler][randomGen]") {
const size_t nb_nodes = nb_nodes_dist(gen);
SECTION("Acyclic Graph") {
Aidge::Log::setConsoleLevel(Aidge::Log::Warn);
fmt::print("gen acyclic graph of {} nodes...\n", nb_nodes);
randGraph.acyclic = true;
......@@ -65,7 +66,7 @@ TEST_CASE("randomScheduling", "[Scheduler][randomGen]") {
}
g1->save("schedule");
g1->forwardDims();
g1->compile();
fmt::print("gen scheduling...\n");
auto scheduler = SequentialScheduler(g1);
......
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