未验证 提交 f35cef0b 编写于 作者: J jiaozhenyu 提交者: GitHub

Update train.py

remove redundant code
上级 315bb04c
...@@ -98,7 +98,6 @@ def main(train_data_file, test_data_file, vocab_file, target_file, emb_file, ...@@ -98,7 +98,6 @@ def main(train_data_file, test_data_file, vocab_file, target_file, emb_file,
for pass_id in xrange(num_passes): for pass_id in xrange(num_passes):
chunk_evaluator.reset(exe) chunk_evaluator.reset(exe)
for data in train_reader(): for data in train_reader():
print len(data)
cost, batch_precision, batch_recall, batch_f1_score = exe.run( cost, batch_precision, batch_recall, batch_f1_score = exe.run(
fluid.default_main_program(), fluid.default_main_program(),
feed=feeder.feed(data), feed=feeder.feed(data),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册