Skip to content

Commit

Permalink
better exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
jkiesele committed Nov 7, 2024
1 parent d785531 commit 360bdb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/djcdata/src/trainDataGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -352,8 +352,8 @@ trainData trainDataGenerator::prepareBatch(){

if(nsamplesprocessed_ + bufferelements < ntotal_){
if (filecount_ >= orig_infiles_.size()){
std::cout << "trainDataGenerator<T>::prepareBatch: filecount: "<< filecount_ <<" infiles "<< orig_infiles_.size()<<
" processed: "<< nsamplesprocessed_ << " buffer: "<< bufferelements << " total "<< ntotal_ << std::endl;
std::cout << "trainDataGenerator<T>::prepareBatch: filecount: "<< filecount_ <<", total infiles: "<< orig_infiles_.size()<<
" processed: "<< nsamplesprocessed_ << ", in buffer: "<< bufferelements << ", total expected: "<< ntotal_ << std::endl;
throw std::runtime_error(
"trainDataGenerator<T>::prepareBatch: more file reads requested than batches in the sample");

Expand Down

0 comments on commit 360bdb5

Please sign in to comment.