It is no longer a fresh thing to use convolutional neural networks to classify images. The most common experiment is to use CNN for handwritten digit recognition. However, the pictures used for training in the recognition just have two colors of black and white while which mostly are colored in the real world. As a result, more complex models need to be designed for training and classification. This article mainly does the following work: Study the principle of CNN and its application on graph classification; Use TensorFlow to quickly build a classification model; Apply the classification model to cifar10 for graph classification and evaluated the classification model. The accuracy of the classifier designed is 78% on the training set and 70% on the verification set.