TorchCraftAI
A bot for machine learning research on StarCraft: Brood War
|
Wrapper for DataReaderIterator that applies an additional transform to the resulting batches. More...
#include <datareader.h>
Public Types | |
using | Result = typename std::result_of< F(std::vector< T > const &)>::type |
Public Member Functions | |
DataReaderTransform (std::unique_ptr< DataReaderIterator< T >> &&it, F function, DataReaderThreadInitF init) | |
~DataReaderTransform () | |
bool | hasNext () |
Result | next () |
Static Public Attributes | |
static size_t constexpr | kMaxResultsInQueue = 4 |
Wrapper for DataReaderIterator that applies an additional transform to the resulting batches.
The transform function will be run in a dedicated thread.
using common::DataReaderTransform< T, F >::Result = typename std::result_of<F(std::vector<T> const&)>::type |
|
inline |
common::DataReaderTransform< T, F >::~DataReaderTransform | ( | ) |
bool common::DataReaderTransform< T, F >::hasNext | ( | ) |
DataReaderTransform< T, F >::Result common::DataReaderTransform< T, F >::next | ( | ) |
|
static |