Predictor for multi-input models: present as list instead of tuple…

(because TF-Serving expects that and cannot cast)
This commit is contained in:
Robert Sachunsky 2026-06-03 20:56:00 +02:00
parent 4e7e1c06b9
commit 38fe4d33ad

View file

@ -184,8 +184,8 @@ class Predictor(mp.context.SpawnProcess):
else: else:
data.append(stack.enter_context(ndarray_shared(shared_data))) data.append(stack.enter_context(ndarray_shared(shared_data)))
if multi_input: if multi_input:
data = tuple(np.concatenate(data0) data = list(np.concatenate(data0)
for data0 in zip(*data)) for data0 in zip(*data))
else: else:
data = np.concatenate(data) data = np.concatenate(data)
#result = self.model.predict(data, verbose=0) #result = self.model.predict(data, verbose=0)