Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions torch/csrc/api/include/torch/data/datasets/chunk.h
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,11 @@ class ChunkDataset final
return batch_buffer_->get_batch();
}

/// Helper method around get_batch as `batch_size` is not strictly necessary
BatchType get_batch() {
return get_batch(options_.batch_size_);
}

/// This will clear any internal state and starts the internal prefetching
/// mechanism for the chunk dataset.
void reset() override {
Expand Down