Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
aidge_core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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
Houssem ROUIS
aidge_core
Commits
b1067ec7
Commit
b1067ec7
authored
4 months ago
by
Maxence Naud
Committed by
Maxence Naud
4 months ago
Browse files
Options
Downloads
Patches
Plain Diff
fix a log and add some details to another log
parent
5d0baf0b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/backend/OperatorImpl.cpp
+2
-2
2 additions, 2 deletions
src/backend/OperatorImpl.cpp
src/operator/OperatorTensor.cpp
+1
-1
1 addition, 1 deletion
src/operator/OperatorTensor.cpp
with
3 additions
and
3 deletions
src/backend/OperatorImpl.cpp
+
2
−
2
View file @
b1067ec7
...
@@ -95,7 +95,7 @@ Aidge::ImplSpec Aidge::OperatorImpl::getBestMatch(const ImplSpec& requiredSpecs)
...
@@ -95,7 +95,7 @@ Aidge::ImplSpec Aidge::OperatorImpl::getBestMatch(const ImplSpec& requiredSpecs)
Log
::
debug
(
"getBestMatch() for requirements: {}"
,
requiredSpecs
);
Log
::
debug
(
"getBestMatch() for requirements: {}"
,
requiredSpecs
);
const
auto
availableSpecsSet
=
getAvailableImplSpecs
();
const
auto
availableSpecsSet
=
getAvailableImplSpecs
();
AIDGE_ASSERT
(
availableSpecsSet
.
size
()
>
0
,
AIDGE_ASSERT
(
availableSpecsSet
.
size
()
>
0
,
"OperatorImpl::getBestMatch(): No available specs found by"
"OperatorImpl::getBestMatch(): No available specs found by"
"getAvailableSpecs(). "
"getAvailableSpecs(). "
"Cannot find best implementation for required specs, aborting."
);
"Cannot find best implementation for required specs, aborting."
);
...
@@ -139,7 +139,7 @@ Aidge::ImplSpec Aidge::OperatorImpl::getBestMatch(const ImplSpec& requiredSpecs)
...
@@ -139,7 +139,7 @@ Aidge::ImplSpec Aidge::OperatorImpl::getBestMatch(const ImplSpec& requiredSpecs)
if
(
mandatory
)
{
if
(
mandatory
)
{
// Required attribute:
// Required attribute:
if
(
!
spec
.
attrs
.
hasAttr
(
name
))
{
if
(
!
spec
.
attrs
.
hasAttr
(
name
))
{
Log
::
debug
(
"Could not find mandatory attribute {}
value {}
."
,
name
);
Log
::
debug
(
"Could not find mandatory attribute
'
{}
'
."
,
name
);
// Missing attribute
// Missing attribute
match
=
false
;
match
=
false
;
break
;
break
;
...
...
This diff is collapsed.
Click to expand it.
src/operator/OperatorTensor.cpp
+
1
−
1
View file @
b1067ec7
...
@@ -88,7 +88,7 @@ std::shared_ptr<Aidge::Data> Aidge::OperatorTensor::getRawOutput(const Aidge::IO
...
@@ -88,7 +88,7 @@ std::shared_ptr<Aidge::Data> Aidge::OperatorTensor::getRawOutput(const Aidge::IO
}
}
const
std
::
shared_ptr
<
Aidge
::
Tensor
>&
Aidge
::
OperatorTensor
::
getOutput
(
const
Aidge
::
IOIndex_t
outputIdx
)
const
{
const
std
::
shared_ptr
<
Aidge
::
Tensor
>&
Aidge
::
OperatorTensor
::
getOutput
(
const
Aidge
::
IOIndex_t
outputIdx
)
const
{
AIDGE_ASSERT
(
outputIdx
<
nbOutputs
(),
"{} Operator has {} outputs"
,
type
(),
nbOutputs
());
AIDGE_ASSERT
(
outputIdx
<
nbOutputs
(),
"{} Operator has {} outputs
, asked for output#{}
"
,
type
(),
nbOutputs
()
,
outputIdx
);
return
mOutputs
[
outputIdx
];
return
mOutputs
[
outputIdx
];
}
}
...
...
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