From ec7c16f5051b89e096138e076202906a48a7ea01 Mon Sep 17 00:00:00 2001 From: ychao_1983 Date: Wed, 13 Jul 2022 15:20:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'inference.py'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- inference.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inference.py b/inference.py index f99d055..f0501e9 100644 --- a/inference.py +++ b/inference.py @@ -144,7 +144,7 @@ parser.add_argument('--device_target', type=str, default="Ascend", choices=['Asc help='device where the code will be implemented (default: Ascend)') if __name__ == "__main__": - args = parser.parse_args() + args, unknown = parser.parse_known_args() ### defining the training environment environment = 'train' workroot = WorkEnvironment(environment)