Base class for image data iterators.
Iterator must implement the
n: Integer, total number of samples in the dataset to loop over.
batch_size: Integer, size of a batch.
shuffle: Boolean, whether to shuffle the data between epochs.
seed: Random seeding for data shuffling.
__init__( n, batch_size, shuffle, seed )
Initialize self. See help(type(self)) for accurate signature.
Gets batch at position
index: position of the batch in the Sequence.
Creates an infinite generator that iterate over the Sequence.
Number of batch in the Sequence.
The number of batches in the Sequence.
__next__( *args, **kwargs )
Method called at the end of every epoch.
© 2018 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.