libdl
0.0.1
Simple yet powerful deep learning
Loading...
Searching...
No Matches
dataloader.hpp
1
#pragma once
2
3
#include "../utils/generic_iterator.hpp"
4
5
#include <tuple>
6
#include <vector>
7
8
namespace
dl {
9
template
<
typename
>
10
class
Dataloader
;
11
12
template
<
typename
R,
typename
... Args>
13
class
Dataloader
<R(Args...)> {
14
public
:
15
using
Instance
=
std::tuple<R, std::remove_reference_t<Args>
...>;
16
using
Batch
=
std::vector<Instance>
;
17
18
private
:
19
public
:
20
virtual
~Dataloader
() =
default
;
21
22
virtual
dl::utils::GenericIterator<Instance>
begin() = 0;
23
virtual
dl::utils::GenericIterator<Instance>
end() = 0;
24
};
25
}
// namespace dl
dl::Dataloader
Definition
dataloader.hpp:10
dl::utils::GenericIterator
Represents a generic iterator that can be initialized to hold any other class instance that satisfies...
Definition
generic_iterator.hpp:24
std::tuple
std::vector
dl
learning
dataloader.hpp
Generated by
1.9.8