tensorflow saved model to java
train.py code:

builder = tf.saved_model.builder.SavedModelBuilder("/home/datam/cnn-text-classification-tf/model/20180423")
builder.add_meta_graph_and_variables(
    sess,
    [tf.saved_model.tag_constants.SERVING],
    clear_devices=True
)
builder.save()


Java Coding:

SavedModelBundle model = SavedModelBundle.load(SAVED_MODEL_PATH+"/20180423", "serve");
Session s = model.session();
Graph g = model.graph();