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
6110d525
Commit
6110d525
authored
1 year ago
by
Maxence Naud
Browse files
Options
Downloads
Patches
Plain Diff
Make some arguments const for data flow functions
parent
59855419
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
include/aidge/backend/OperatorImpl.hpp
+4
-4
4 additions, 4 deletions
include/aidge/backend/OperatorImpl.hpp
include/aidge/operator/Operator.hpp
+3
-3
3 additions, 3 deletions
include/aidge/operator/Operator.hpp
with
7 additions
and
7 deletions
include/aidge/backend/OperatorImpl.hpp
+
4
−
4
View file @
6110d525
...
...
@@ -29,10 +29,10 @@ public:
* @param inputIdx Index of the input analysed.
* @return std::size_t
*/
virtual
NbElts_t
getNbRequiredData
(
IOIndex_t
inputIdx
)
const
=
0
;
virtual
NbElts_t
getNbRequiredData
(
const
IOIndex_t
inputIdx
)
const
=
0
;
// Amount of input data that cannot be overwritten during the execution.
virtual
NbElts_t
getNbRequiredProtected
(
IOIndex_t
inputIdx
)
const
=
0
;
virtual
NbElts_t
getNbRequiredProtected
(
const
IOIndex_t
inputIdx
)
const
=
0
;
// Memory required at an output for a given input size.
virtual
NbElts_t
getRequiredMemory
(
const
IOIndex_t
outputIdx
,
const
std
::
vector
<
DimSize_t
>
&
inputsSize
)
const
=
0
;
...
...
@@ -43,7 +43,7 @@ public:
* @param inputIdx Index of the input analysed.
* @return DimSize_t
*/
virtual
NbElts_t
getNbConsumedData
(
IOIndex_t
inputIdx
)
const
=
0
;
virtual
NbElts_t
getNbConsumedData
(
const
IOIndex_t
inputIdx
)
const
=
0
;
/**
* @brief TOtal amount of produced data ready to be used on a specific output.
...
...
@@ -51,7 +51,7 @@ public:
* @param outputIdx Index of the output analysed.
* @return DimSize_t
*/
virtual
NbElts_t
getNbProducedData
(
IOIndex_t
outputIdx
)
const
=
0
;
virtual
NbElts_t
getNbProducedData
(
const
IOIndex_t
outputIdx
)
const
=
0
;
virtual
~
OperatorImpl
()
=
default
;
};
...
...
This diff is collapsed.
Click to expand it.
include/aidge/operator/Operator.hpp
+
3
−
3
View file @
6110d525
...
...
@@ -60,7 +60,7 @@ public:
* @param inputIdx Index of the input analysed.
* @return NbElts_t
*/
NbElts_t
getNbRequiredData
(
IOIndex_t
inputIdx
)
const
;
NbElts_t
getNbRequiredData
(
const
IOIndex_t
inputIdx
)
const
;
/**
* @brief Amount of data from a specific input actually used in one computation pass.
...
...
@@ -68,7 +68,7 @@ public:
* @param inputIdx Index of the input analysed.
* @return NbElts_t
*/
NbElts_t
getNbConsumedData
(
IOIndex_t
inputIdx
)
const
;
NbElts_t
getNbConsumedData
(
const
IOIndex_t
inputIdx
)
const
;
/**
* @brief Amount of data ready to be used on a specific output.
...
...
@@ -76,7 +76,7 @@ public:
* @param outputIdx Index of the output analysed.
* @return NbElts_t
*/
NbElts_t
getNbProducedData
(
IOIndex_t
outputIdx
)
const
;
NbElts_t
getNbProducedData
(
const
IOIndex_t
outputIdx
)
const
;
virtual
void
forward
();
...
...
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