def run_test(session, test_obj, dict_obj):
start_time = time.time()
print("Starting test computation\n")
test_loss = run_epoch(session, tf.no_op(), test_obj, dict_obj)
curr_time = time.time()
print('1 epoch run takes ' + str(((curr_time - start_time) / 60)) + ' minutes.')
# def main():
# session, test_obj = init_test()
# dict_obj = set_dict.Dictionary()
# run_test(session, test_obj, dict_obj)
#
#
# if __name__ == "__main__":
# main()
test.py 文件源码
python
阅读 35
收藏 0
点赞 0
评论 0
评论列表
文章目录