def test_model(model_path):
     with tf.Graph().as_default():
         res_file, quest_ids = test(model_path)
     print(res_file)
     acc, details = evaluate_model(res_file, quest_ids, version='v1')
     write_result_log(model_path, 'Fusion', acc, details)
     return acc
 def test_model(model_path):
     with tf.Graph().as_default():
         res_file, quest_ids = test(model_path)
     print(res_file)
     acc, details = evaluate_model(res_file,
                                   quest_ids,
                                   version=FLAGS.version)
     write_result_log(model_path, FLAGS.model_type, acc, details)
     return acc