auto frontend

This commit is contained in:
游雁 2024-06-03 17:13:48 +08:00
parent 99ecaca869
commit 1fcb757216

View File

@ -52,7 +52,7 @@ class AutoFrontend:
key_list, data_list = prepare_data_iterator(input, input_len=input_len)
batch_size = kwargs.get("batch_size", 1)
device = kwargs.get("device", "cpu")
device = kwargs.get("device", "cuda")
if device == "cpu":
batch_size = 1