Skip to content

Commit 25d24b6

Browse files
committed
Flush the batch infer counter
1 parent a7b0d7c commit 25d24b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/qusi/internal/infer_session.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,6 @@ def infer_phase(dataloader, model: Module, device: Device):
4646
batch_predicted_targets = model(input_features_on_device)
4747
batches_of_predicted_targets.append(batch_predicted_targets.cpu().numpy())
4848
batch_count += 1
49-
print(f'Batches completed: {batch_count}')
49+
print(f'Batches completed: {batch_count}', flush=True)
5050
predicted_targets = np.concatenate(batches_of_predicted_targets, axis=0)
5151
return predicted_targets

0 commit comments

Comments
 (0)