Logo ROOT  
Reference Guide
TMVA::DNN::TBatchIterator< Data_t, AArchitecture > Class Template Reference

template<typename Data_t, typename AArchitecture>
class TMVA::DNN::TBatchIterator< Data_t, AArchitecture >

TBatchIterator.

Simple iterator class for the iterations over the training batches in a given data set represented by a TDataLoader object.

Template Parameters
ADataThe input data type.
AArchitectureThe underlying architecture type.

Definition at line 90 of file DataLoader.h.

Public Member Functions

 TBatchIterator (TDataLoader< Data_t, AArchitecture > &dataLoader, size_t index=0)
 
bool operator!= (const TBatchIterator &other)
 
TBatch< AArchitecture > operator* ()
 
TBatchIterator operator++ ()
 

Private Attributes

size_t fBatchIndex
 
TDataLoader< Data_t, AArchitecture > & fDataLoader
 

#include <TMVA/DNN/DataLoader.h>

Constructor & Destructor Documentation

◆ TBatchIterator()

template<typename Data_t , typename AArchitecture >
TMVA::DNN::TBatchIterator< Data_t, AArchitecture >::TBatchIterator ( TDataLoader< Data_t, AArchitecture > &  dataLoader,
size_t  index = 0 
)
inline

Definition at line 99 of file DataLoader.h.

Member Function Documentation

◆ operator!=()

template<typename Data_t , typename AArchitecture >
bool TMVA::DNN::TBatchIterator< Data_t, AArchitecture >::operator!= ( const TBatchIterator< Data_t, AArchitecture > &  other)
inline

Definition at line 107 of file DataLoader.h.

◆ operator*()

template<typename Data_t , typename AArchitecture >
TBatch< AArchitecture > TMVA::DNN::TBatchIterator< Data_t, AArchitecture >::operator* ( )
inline

Definition at line 105 of file DataLoader.h.

◆ operator++()

template<typename Data_t , typename AArchitecture >
TBatchIterator TMVA::DNN::TBatchIterator< Data_t, AArchitecture >::operator++ ( )
inline

Definition at line 106 of file DataLoader.h.

Member Data Documentation

◆ fBatchIndex

template<typename Data_t , typename AArchitecture >
size_t TMVA::DNN::TBatchIterator< Data_t, AArchitecture >::fBatchIndex
private

Definition at line 95 of file DataLoader.h.

◆ fDataLoader

template<typename Data_t , typename AArchitecture >
TDataLoader<Data_t, AArchitecture>& TMVA::DNN::TBatchIterator< Data_t, AArchitecture >::fDataLoader
private

Definition at line 94 of file DataLoader.h.


The documentation for this class was generated from the following file: