I followed the tutorial \"A Guide to TF Layers: Building a Convolutional Neural Network\" (here is the code: https://github.com/tensorflow/tensorflow/blob/r1.1/tensorflow/exampl
Estimator has an export_savedmodel member function for that purpose. You will find the docs here.
Estimator
export_savedmodel