From c37ed92b1954ee0af493d8216e24eac11d530f86 Mon Sep 17 00:00:00 2001 From: AllentDan Date: Thu, 2 Feb 2023 15:08:32 +0800 Subject: [PATCH] fix error: build_backend_model() takes from 1 to 2 positional arguments but 3 were given --- tools/test.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/test.py b/tools/test.py index b9e18df3cf..714c7952c6 100644 --- a/tools/test.py +++ b/tools/test.py @@ -123,7 +123,8 @@ def main(): # load the model of the backend model = task_processor.build_backend_model( - args.model, task_processor.update_data_preprocessor) + args.model, + data_preprocessor_updater=task_processor.update_data_preprocessor) destroy_model = model.destroy is_device_cpu = (args.device == 'cpu')