We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 822d7e3 commit 7759e59Copy full SHA for 7759e59
ml4h/recipes.py
@@ -1093,7 +1093,7 @@ def _predict_scalars_and_evaluate_from_generator(
1093
1094
for tm_output_name, y in predictions_dict.items():
1095
if tm_output_name in scalar_predictions:
1096
- scalar_predictions[tm_output_name].extend(np.copy(y))
+ scalar_predictions[tm_output_name].extend(np.copy(y.numpy()))
1097
1098
if i % 100 == 0:
1099
logging.info(f'Processed {i} batches, {len(test_paths)} tensors.')
0 commit comments