def load():
    with tf.Graph().as_default() as g:
        with tf.Session(graph=g) as sess:
            x = tf.placeholder(tf.float32)
            xx = ((2 * x) + 7)
            with open('/tmp/k/test', 'rb') as f:
                graph_def = tf.GraphDef()
                text_format.Merge(f.read(), graph_def)
            y = tf.import_graph_def(graph_def, input_map={'input:0': xx}, return_elements=['mul:0'], name=None, op_dict=None, producer_op_list=None)
            print(sess.run(y, feed_dict={x: 15}))
def load():
    with tf.Graph().as_default() as g:
        with tf.Session(graph=g) as sess:
            x = tf.placeholder(tf.float32)
            xx = ((2 * x) + 7)
            with open('/tmp/k/test', 'rb') as f:
                graph_def = tf.GraphDef()
                text_format.Merge(f.read(), graph_def)
            y = tf.import_graph_def(graph_def, input_map={'input:0': xx}, return_elements=['mul:0'], name=None, op_dict=None, producer_op_list=None)
            print(sess.run(y, feed_dict={x: 15}))