TensorFlow 1 version | View source on GitHub |
Loads CIFAR10 dataset.
tf.keras.datasets.cifar10.load_data()
This is a dataset of 50,000 32x32 color training images and 10,000 test images, labeled over 10 categories. See more info at the CIFAR homepage.
Returns | |
---|---|
Tuple of Numpy arrays: (x_train, y_train), (x_test, y_test) .
x_train, x_test: uint8 arrays of RGB image data with shape
(num_samples, 3, 32, 32) if the y_train, y_test: uint8 arrays of category labels (integers in range 0-9) each with shape (num_samples, 1). |