c3dm/tools/functions.py [167:174]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
	if mask is not None:
		dist = (dist*mask).sum(1) / \
					torch.clamp(mask.sum(1),1.)
	else:
		if len(dist.shape)==2 and dist.shape[1] > 1: 
			dist = dist.mean(1)
	dist = dist.mean()
	return dist
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



c3dm/tools/functions.py [180:187]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
	if mask is not None:
		dist = (dist*mask).sum(1) / \
					torch.clamp(mask.sum(1),1.)
	else:
		if len(dist.shape)==2 and dist.shape[1] > 1: 
			dist = dist.mean(1)
	dist = dist.mean()
	return dist
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



