def get_aggregated_metrics_from_dict(input_metric_dict):
	"""Get a dictionary of the mean metric values (to log) from a dictionary of metric values"""
	metric_dict = {}
	for metric_name, metric_value in input_metric_dict.items():
		metric_dim = len(metric_value.shape)
		if metric_dim == 0:
			metric_dict[metric_name] = metric_value
		else:
			metric_dict[metric_name] = metric_value.double().mean()
	return metric_dict