test.py 文件源码

python
阅读 35 收藏 0 点赞 0 评论 0

项目:deep-attention-text-classifier-tf 作者: krayush07 项目源码 文件源码
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()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号