未验证 提交 03616470 编写于 作者: L littletomatodonkey 提交者: GitHub

fix logg (#1182)

上级 4cf85329
......@@ -120,7 +120,8 @@ def test_reader():
if count % 1 == 0:
batch_time = time.time() - starttime
starttime = time.time()
logger.info("reader:", count, len(data), batch_time)
logger.info("[reader]count: {}, data length: {}, time: {}".
format(count, len(data), batch_time))
except Exception as e:
logger.info(e)
logger.info("finish reader: {}, Success!".format(count))
......@@ -130,5 +131,7 @@ if __name__ == '__main__':
enable_static_mode()
startup_program, train_program, place, config, train_alg_type = program.preprocess(
)
# run the train process
main()
# test_reader()
# if you want to check the reader, you can comment `main` and run test_reader
# test_reader()
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册