Definition at line 41 of file RBatchLoader.hxx.
#include <TMVA/BatchGenerator/RBatchLoader.hxx>
◆ RBatchLoader()
| TMVA::Experimental::Internal::RBatchLoader::RBatchLoader |
( |
std::size_t | batchSize, |
|
|
const std::vector< std::string > & | cols, |
|
|
const std::vector< std::size_t > & | vecSizes = {}, |
|
|
std::size_t | numEntries = 0, |
|
|
bool | dropRemainder = false ) |
|
inline |
◆ Activate()
| void TMVA::Experimental::Internal::RBatchLoader::Activate |
( |
| ) |
|
|
inline |
◆ CreateBatch()
| std::unique_ptr< RFlat2DMatrix > TMVA::Experimental::Internal::RBatchLoader::CreateBatch |
( |
RFlat2DMatrix & | chunTensor, |
|
|
std::size_t | idxs ) |
|
inline |
Return a batch of data as a unique pointer.
After the batch has been processed, it should be destroyed.
- Parameters
-
| [in] | chunkTensor | Tensor with the data from the chunk |
| [in] | idxs | Index of batch in the chunk |
- Returns
- Batch
Definition at line 133 of file RBatchLoader.hxx.
◆ CreateBatches()
| void TMVA::Experimental::Internal::RBatchLoader::CreateBatches |
( |
RFlat2DMatrix & | chunkTensor, |
|
|
std::size_t | lastbatch ) |
|
inline |
Creating the batches from a chunk and add them to the queue.
- Parameters
-
| [in] | chunkTensor | Tensor with the data from the chunk |
| [in] | lastbatch | Check if the batch in the chunk is the last one |
Definition at line 162 of file RBatchLoader.hxx.
◆ DeActivate()
| void TMVA::Experimental::Internal::RBatchLoader::DeActivate |
( |
| ) |
|
|
inline |
DeActivate the batchloader.
This means that no more batches are created. Batches can still be returned if they are already loaded
Definition at line 119 of file RBatchLoader.hxx.
◆ GetBatch()
| RFlat2DMatrix TMVA::Experimental::Internal::RBatchLoader::GetBatch |
( |
| ) |
|
|
inline |
◆ GetNumBatches()
| std::size_t TMVA::Experimental::Internal::RBatchLoader::GetNumBatches |
( |
| ) |
|
|
inline |
◆ GetNumBatchQueue()
| std::size_t TMVA::Experimental::Internal::RBatchLoader::GetNumBatchQueue |
( |
| ) |
|
|
inline |
◆ GetNumEntries()
| std::size_t TMVA::Experimental::Internal::RBatchLoader::GetNumEntries |
( |
| ) |
|
|
inline |
◆ GetNumRemainderRows()
| std::size_t TMVA::Experimental::Internal::RBatchLoader::GetNumRemainderRows |
( |
| ) |
|
|
inline |
◆ fBatchCondition
| std::condition_variable TMVA::Experimental::Internal::RBatchLoader::fBatchCondition |
|
private |
◆ fBatchLock
| std::mutex TMVA::Experimental::Internal::RBatchLoader::fBatchLock |
|
private |
◆ fBatchQueue
| std::queue<std::unique_ptr<RFlat2DMatrix> > TMVA::Experimental::Internal::RBatchLoader::fBatchQueue |
|
private |
◆ fBatchSize
| std::size_t TMVA::Experimental::Internal::RBatchLoader::fBatchSize |
|
private |
◆ fCols
| std::vector<std::string> TMVA::Experimental::Internal::RBatchLoader::fCols |
|
private |
◆ fCurrentBatch
| std::unique_ptr<RFlat2DMatrix> TMVA::Experimental::Internal::RBatchLoader::fCurrentBatch |
|
private |
◆ fDropRemainder
| bool TMVA::Experimental::Internal::RBatchLoader::fDropRemainder |
|
private |
◆ fIsActive
| bool TMVA::Experimental::Internal::RBatchLoader::fIsActive = false |
|
private |
◆ fLeftoverBatchSize
| std::size_t TMVA::Experimental::Internal::RBatchLoader::fLeftoverBatchSize |
|
private |
◆ fNumBatches
| std::size_t TMVA::Experimental::Internal::RBatchLoader::fNumBatches |
|
private |
◆ fNumColumns
| std::size_t TMVA::Experimental::Internal::RBatchLoader::fNumColumns |
|
private |
◆ fNumEntries
| std::size_t TMVA::Experimental::Internal::RBatchLoader::fNumEntries |
|
private |
◆ fNumFullBatches
| std::size_t TMVA::Experimental::Internal::RBatchLoader::fNumFullBatches |
|
private |
◆ fNumLeftoverBatches
| std::size_t TMVA::Experimental::Internal::RBatchLoader::fNumLeftoverBatches |
|
private |
◆ fPrimaryLeftoverBatch
| std::unique_ptr<RFlat2DMatrix> TMVA::Experimental::Internal::RBatchLoader::fPrimaryLeftoverBatch |
|
private |
◆ fSecondaryLeftoverBatch
| std::unique_ptr<RFlat2DMatrix> TMVA::Experimental::Internal::RBatchLoader::fSecondaryLeftoverBatch |
|
private |
◆ fSumVecSizes
| std::size_t TMVA::Experimental::Internal::RBatchLoader::fSumVecSizes |
|
private |
◆ fVecSizes
| std::vector<std::size_t> TMVA::Experimental::Internal::RBatchLoader::fVecSizes |
|
private |
The documentation for this class was generated from the following file: