pulsatrix
Loading...
Searching...
No Matches
iterable_dataset.hpp
Go to the documentation of this file.
1
5#pragma once
6
7#include <optional>
8
10
11namespace pulsatrix {
12
24public:
25 virtual ~IterableDataset() = default;
26
28 virtual void reset() = 0;
29
34 [[nodiscard]] virtual std::optional<Sample> next() = 0;
35};
36
37} // namespace pulsatrix
Streaming dataset abstraction for sources with no random access or no known length (sharded files,...
Definition iterable_dataset.hpp:23
virtual ~IterableDataset()=default
virtual void reset()=0
Resets iteration to the beginning. Called once per epoch by DataLoader.
virtual std::optional< Sample > next()=0
Fetches the next sample.
Random-access dataset abstraction – Sample, Dataset (size()/get()).
Definition acquisition_functions.hpp:16