未验证 提交 2a526a09 编写于 作者: W WangWenjin 提交者: GitHub

Update train.py

上级 95bda867
......@@ -82,7 +82,7 @@ if __name__ == "__main__":
batch_size = args.batch_size
sample_workers = 1
place = fluid.CUDAPlace(args.gpu_id) if args.use_gpu else fluid.CPUPlace()
place = fluid.CUDAPlace(0) if args.use_gpu else fluid.CPUPlace()
train_program = fluid.Program()
startup_program = fluid.Program()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册