def main():
    load()
    with tf.Graph().as_default():
        rr = tf.constant(15.0)
        with tf.Session() as sess:
            meta_graph_def = tf.saved_model.loader.load(sess, [tf.saved_model.tag_constants.SERVING], '/tmp/lll')
            signature = meta_graph_def.signature_def
            signature_key = tf.saved_model.signature_constants.DEFAULT_SERVING_SIGNATURE_DEF_KEY
            x_tensor_name = signature[signature_key].inputs['x'].name
            y_tensor_name = signature[signature_key].outputs['y'].name
            x = sess.graph.get_tensor_by_name(x_tensor_name)
            y = sess.graph.get_tensor_by_name(y_tensor_name)
            h = tf.get_session_handle(rr)
            h = sess.run(h)
            y_out = sess.run(y, {x: h})
def main():
    load()
    with tf.Graph().as_default():
        rr = tf.constant(15.0)
        with tf.Session() as sess:
            meta_graph_def = tf.saved_model.loader.load(sess, [tf.saved_model.tag_constants.SERVING], '/tmp/lll')
            signature = meta_graph_def.signature_def
            signature_key = tf.saved_model.signature_constants.DEFAULT_SERVING_SIGNATURE_DEF_KEY
            x_tensor_name = signature[signature_key].inputs['x'].name
            y_tensor_name = signature[signature_key].outputs['y'].name
            x = sess.graph.get_tensor_by_name(x_tensor_name)
            y = sess.graph.get_tensor_by_name(y_tensor_name)
            h = tf.get_session_handle(rr)
            h = sess.run(h)
            y_out = sess.run(y, {x: h})