tf.keras.datasets.cifar10.load_data

Loads CIFAR10 dataset.

Used in the notebooks

Used in the guide Used in the tutorials

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.

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 tf.keras.backend.image_data_format() is 'channels_first', or (num_samples, 32, 32, 3) if the data format is 'channels_last'.

y_train, y_test: uint8 arrays of category labels (integers in range 0-9) each with shape (num_samples, 1).