From 2fd3f5578b3eae3b003dbca250c27c85c278db5c Mon Sep 17 00:00:00 2001 From: Xing Wu <1160386409@qq.com> Date: Fri, 25 Oct 2019 17:02:55 +0800 Subject: [PATCH] fix use_gpu=False error (#3775) --- PaddleNLP/PaddleTextGEN/variational_seq2seq/args.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PaddleNLP/PaddleTextGEN/variational_seq2seq/args.py b/PaddleNLP/PaddleTextGEN/variational_seq2seq/args.py index 1d856577..a19f65cb 100644 --- a/PaddleNLP/PaddleTextGEN/variational_seq2seq/args.py +++ b/PaddleNLP/PaddleTextGEN/variational_seq2seq/args.py @@ -117,7 +117,7 @@ def parse_args(): parser.add_argument( '--use_gpu', - type=bool, + type=eval, default=False, help='Whether using gpu [True|False]') -- GitLab