Skip to content

Commit be17c48

Browse files
AllentDanlvhan028
authored andcommitted
fix error: build_backend_model() takes from 1 to 2 positional arguments but 3 were given (#1705)
1 parent 387b275 commit be17c48

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,8 @@ def main():
123123

124124
# load the model of the backend
125125
model = task_processor.build_backend_model(
126-
args.model, task_processor.update_data_preprocessor)
126+
args.model,
127+
data_preprocessor_updater=task_processor.update_data_preprocessor)
127128
destroy_model = model.destroy
128129
is_device_cpu = (args.device == 'cpu')
129130

0 commit comments

Comments
 (0)