From 241572e49a52941ad545e9738e22f3bd25c68953 Mon Sep 17 00:00:00 2001 From: gaotingquan Date: Fri, 28 Oct 2022 11:08:04 +0000 Subject: [PATCH] fix: debug --- ppcls/static/train.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ppcls/static/train.py b/ppcls/static/train.py index ad1d9291..7e73fabf 100755 --- a/ppcls/static/train.py +++ b/ppcls/static/train.py @@ -95,7 +95,7 @@ def main(args): use_ascend = global_config.get("use_ascend", False) assert ( use_gpu + use_xpu + use_npu + use_mlu + use_ascend <= 1 - ) is not True, "gpu, xpu, npu, mlu and ascend can not be true in the same time in static mode!" + ), "gpu, xpu, npu, mlu and ascend can not be true in the same time in static mode!" if use_gpu: device = paddle.set_device('gpu') -- GitLab