Fully Connected

Hi,I have some questions about the fully connected layer.

I construct a convolution neural network,and use a triplet network to train it.
I just use the convolution neural network to produce the feature of the input image(not classification),so is there any necessary to put fully connected layer in the end of the cnn?

Can any one give me some suggestions? Thank you so much.

it’s not necessary to always put fully connected layer at end of CNN.