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
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
Cyril Moineau
aidge_core
Commits
f43fb81d
Commit
f43fb81d
authored
1 year ago
by
Thibault Allenet
Browse files
Options
Downloads
Patches
Plain Diff
Update comments in dataProvider.hpp
parent
869a742b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/aidge/data/DataProvider.hpp
+18
-5
18 additions, 5 deletions
include/aidge/data/DataProvider.hpp
with
18 additions
and
5 deletions
include/aidge/data/DataProvider.hpp
+
18
−
5
View file @
f43fb81d
...
@@ -77,7 +77,7 @@ public:
...
@@ -77,7 +77,7 @@ public:
std
::
vector
<
std
::
shared_ptr
<
Tensor
>>
readBatch
()
const
;
std
::
vector
<
std
::
shared_ptr
<
Tensor
>>
readBatch
()
const
;
/**
/**
* @brief Get the Number of Batch
* @brief Get the Number of Batch
.
*
*
* @return std::size_t
* @return std::size_t
*/
*/
...
@@ -86,7 +86,7 @@ public:
...
@@ -86,7 +86,7 @@ public:
};
};
/**
/**
* @brief Get the current Index Batch
* @brief Get the current Index Batch
.
*
*
* @return std::size_t
* @return std::size_t
*/
*/
...
@@ -108,10 +108,13 @@ public:
...
@@ -108,10 +108,13 @@ public:
++
mIndexBatch
;
++
mIndexBatch
;
};
};
/**
* @brief Setup the batches for one pass on the database.
*/
void
setBatches
();
void
setBatches
();
/**
/**
* @brief End of dataProvider
condition
* @brief End
condition
of dataProvider
for one pass on the database.
*
*
* @return true when all batch were fetched, False otherwise
* @return true when all batch were fetched, False otherwise
*/
*/
...
@@ -119,10 +122,20 @@ public:
...
@@ -119,10 +122,20 @@ public:
return
(
mIndexBatch
==
mNbBatch
);
return
(
mIndexBatch
==
mNbBatch
);
};
};
// Functions for python iterator iter and next (definition in pybind.cpp)
// Functions for python iterator iter and next (definition in pybind.cpp)
// __iter__ method for iterator protocol
/**
* @brief __iter__ method for iterator protocol
*
* @return DataProvider*
*/
DataProvider
*
iter
();
DataProvider
*
iter
();
// __next__ method for iterator protocol
/**
* @brief __next__ method for iterator protocol
*
* @return std::vector<std::shared_ptr<Aidge::Tensor>>
*/
std
::
vector
<
std
::
shared_ptr
<
Aidge
::
Tensor
>>
next
();
std
::
vector
<
std
::
shared_ptr
<
Aidge
::
Tensor
>>
next
();
};
};
...
...
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