|
ReUseX
0.0.5
3D Point Cloud Processing for Building Reuse
|
#include <Dataloader.hpp>
Classes | |
| class | Iterator |
Public Types | |
| using | Pair = IDataset::Pair |
| using | Batch = std::vector<Pair> |
| using | BatchView = std::span<Pair> |
Public Member Functions | |
| Dataloader (IDataset &dataset, size_t batch_size, bool shuffle=false, size_t num_workers=4, size_t prefetch_batches=2) | |
| ~Dataloader () | |
| Iterator | begin () |
| Iterator | end () |
| size_t | size () const |
| void | set_num_workers (size_t num_workers) |
| void | set_prefetch_batches (size_t prefetch_batches) |
| size_t | get_num_workers () const |
| size_t | get_prefetch_batches () const |
Definition at line 28 of file Dataloader.hpp.
| using reusex::vision::Dataloader::Batch = std::vector<Pair> |
Definition at line 31 of file Dataloader.hpp.
| using reusex::vision::Dataloader::BatchView = std::span<Pair> |
Definition at line 32 of file Dataloader.hpp.
Definition at line 30 of file Dataloader.hpp.
| reusex::vision::Dataloader::Dataloader | ( | IDataset & | dataset, |
| size_t | batch_size, | ||
| bool | shuffle = false, | ||
| size_t | num_workers = 4, | ||
| size_t | prefetch_batches = 2 ) |
| reusex::vision::Dataloader::~Dataloader | ( | ) |
| Iterator reusex::vision::Dataloader::begin | ( | ) |
| Iterator reusex::vision::Dataloader::end | ( | ) |
| size_t reusex::vision::Dataloader::get_num_workers | ( | ) | const |
| size_t reusex::vision::Dataloader::get_prefetch_batches | ( | ) | const |
| void reusex::vision::Dataloader::set_num_workers | ( | size_t | num_workers | ) |
| void reusex::vision::Dataloader::set_prefetch_batches | ( | size_t | prefetch_batches | ) |
| size_t reusex::vision::Dataloader::size | ( | ) | const |