Skip to content

Commit

Permalink
Add infer batch counter
Browse files Browse the repository at this point in the history
  • Loading branch information
golmschenk committed Jul 27, 2024
1 parent e97dd94 commit f5f2b72
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/qusi/internal/infer_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,6 @@ def infer_phase(dataloader, model: Module, device: Device):
batch_predicted_targets = model(input_features_on_device)
batches_of_predicted_targets.append(batch_predicted_targets.cpu().numpy())
batch_count += 1
print(f'Batches completed: {batch_count}')
predicted_targets = np.concatenate(batches_of_predicted_targets, axis=0)
return predicted_targets

0 comments on commit f5f2b72

Please sign in to comment.