提交 316a3b3f 编写于 作者: Y Yibing Liu

Don't use persistable for fetched variables

上级 6b8f27b2
...@@ -300,7 +300,8 @@ def train(args): ...@@ -300,7 +300,8 @@ def train(args):
bert_config=bert_config, bert_config=bert_config,
is_training=False) is_training=False)
fluid.memory_optimize(test_prog, skip_opt_set=[unique_ids.name, start_logits.name, end_logits.name, num_seqs.name]) fluid.memory_optimize(test_prog, skip_opt_set=[unique_ids.name,
start_logits.name, end_logits.name, num_seqs.name])
test_prog = test_prog.clone(for_test=True) test_prog = test_prog.clone(for_test=True)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册