TensorFlow 2.0 RC is available Learn more

tf.keras.datasets.cifar10.load_data

TensorFlow 2.0 version View source on GitHub

Loads CIFAR10 dataset.

Aliases:

  • tf.compat.v1.keras.datasets.cifar10.load_data
  • tf.compat.v2.keras.datasets.cifar10.load_data
tf.keras.datasets.cifar10.load_data()

Returns:

Tuple of Numpy arrays: (x_train, y_train), (x_test, y_test).