Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
aidge_core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eclipse Projects
aidge
aidge_core
Commits
a1a83f25
Commit
a1a83f25
authored
11 months ago
by
Maxence Naud
Browse files
Options
Downloads
Patches
Plain Diff
Fix test_scheduler test and put back warning in Node
parent
ebdf8b1e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!105
version 0.2.0
,
!100
fix/scheduler_exec_time
Pipeline
#42555
passed
11 months ago
Stage: static_analysis
Stage: build
Stage: test
Stage: coverage
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/graph/Node.cpp
+4
-3
4 additions, 3 deletions
src/graph/Node.cpp
unit_tests/scheduler/Test_Scheduler.cpp
+2
-1
2 additions, 1 deletion
unit_tests/scheduler/Test_Scheduler.cpp
with
6 additions
and
4 deletions
src/graph/Node.cpp
+
4
−
3
View file @
a1a83f25
...
...
@@ -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;
...
...
This diff is collapsed.
Click to expand it.
unit_tests/scheduler/Test_Scheduler.cpp
+
2
−
1
View file @
a1a83f25
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment