Skip to content

Commit

Permalink
fix(torch): dataset size is half the database size
Browse files Browse the repository at this point in the history
  • Loading branch information
royale authored and mergify[bot] committed Jan 24, 2023
1 parent 045aba6 commit 9541de1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backends/torch/torchdataset.cc
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ namespace dd
if (!_dbCursor)
_dbCursor = _dbData->NewCursor();

data_size = _dbData->Count();
data_size = _dbData->Count() / 2;
}

_indices.resize(data_size);
Expand Down

0 comments on commit 9541de1

Please sign in to comment.