pub struct DataLoader<D, C> { /* private fields */ }
Expand description

For iterable dataset, the datalaoder will yield until the underlying iterator is None. As the iteration over the dataset can be done mutliple time, depending if the underlying dataset iterator consume the dataset or not.

Implementations

return a DataLoader builder.

Iterate over the dataloader without consuming the underlying dataset. As it make no sens to collate reference into a tensor, by default element are copied.

Trait Implementations

Formats the value using the given formatter. Read more
The type of the elements being iterated over.
Which kind of iterator are we turning this into?
Creates an iterator from a value. Read more
The type of the elements being iterated over.
Which kind of iterator are we turning this into?
Creates an iterator from a value. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.