W3cubDocs

/TensorFlow

tf.keras.preprocessing.image.NumpyArrayIterator

Iterator yielding data from a Numpy array.

Inherits From: Iterator, PyDataset

DEPRECATED.

Attributes
max_queue_size
num_batches Number of batches in the PyDataset.
use_multiprocessing
workers

Methods

on_epoch_end

View source

Method called at the end of every epoch.

reset

View source

__getitem__

View source

Gets batch at position index.

Args
index position of the batch in the PyDataset.
Returns
A batch

__iter__

View source

__len__

View source

Class Variables
white_list_formats ('png', 'jpg', 'jpeg', 'bmp', 'ppm', 'tif', 'tiff')

© 2022 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/python/tf/keras/preprocessing/image/NumpyArrayIterator