connected layers encode the input examples as feature vec-tors, which are used as inputs to a ﬁnal classiﬁer. Since thefully connected layer looks at the entire input at once, thesefeature vectors “summarize” the input into a feature vec-tor for classiﬁcation. The model is trained end-to-end usingminibatch gradient descent and backpropagation.