def infer_one(args):
    args.load_model = True

    class Dummy():
        pass
    train_env = Dummy()
    infer_env = Dummy()
    (_, infer_graph) = model(args, train_env, infer_env)
    args.data = 'wikisql'
    args.load_data = True
    model2load = 'model/{}'.format(args.subset)
    sess = tf.InteractiveSession(graph=infer_graph)
    infer_env.infer_saver.restore(sess, model2load)
    print('===========decode============')
    X_one = load_data_one(args.maxlen, 'qs.txt')
    decode_one(sess, infer_env, X_one)
    return
def infer_one(args):
    args.load_model = True

    class Dummy():
        pass
    train_env = Dummy()
    infer_env = Dummy()
    (_, infer_graph) = model(args, train_env, infer_env)
    args.data = 'wikisql'
    args.load_data = True
    model2load = 'model/{}'.format(args.subset)
    sess = tf.InteractiveSession(graph=infer_graph)
    infer_env.infer_saver.restore(sess, model2load)
    print('===========decode============')
    X_one = load_data_one(args.maxlen, 'qs.txt')
    decode_one(sess, infer_env, X_one)
    return