|
std::vector< int > | get_batch (size_t batch_size) override |
|
torch::optional< size_t > | size () const override |
| Returns the size of the dataset, or an empty optional if it is unsized.
|
|
virtual Batch | get_batch (BatchRequest request)=0 |
| Returns a batch of data given an index.
|
|
template<typename TransformType > |
MapDataset< Self, TransformType > | map (TransformType transform)& |
| Creates a MapDataset that applies the given transform to this dataset.
|
|
template<typename TransformType > |
MapDataset< Self, TransformType > | map (TransformType transform)&& |
| Creates a MapDataset that applies the given transform to this dataset.
|
|
|
using | SelfType = Self |
|
using | BatchType = Batch |
|
using | BatchRequestType = BatchRequest |
|
static constexpr bool | is_stateful = detail::is_optional<BatchType>::value |
|
Definition at line 133 of file dataloader.cpp.
The documentation for this struct was generated from the following file: