to make this more concretelet' look back at the data we processed in the mnist example firstwe load the mnist datasetfrom keras datasets import mnist (train_imagestrain_labels)(test_imagestest_labelsmnist load_data(nextwe display the number of axes of the tensor train_images the ndim attributeprint(train_images ndim here' its shapeprint(train_images shape( and this is its data typethe dtype attributeprint(train_images dtypeuint so what we have here is tensor of -bit integers more preciselyit' an array of , matrices of integers each such matrix is grayscale imagewith coefficients between and let' display the fourth digit in this tensorusing the library matplotlib (part of the standard scientific python suite)see figure listing displaying he fourt digit digit train_images[ import matplotlib pyplot as plt plt imshow(digitcmap=plt cm binaryplt show(figure the fourt sample in our dat aset licensed to