Utils

Functions:

scale_b_to_a(a, b)

Scale tensor b to the same mean and standard deviation as tensor a.

caloutils.utils.scale_b_to_a(a: <Mock name='mock.Tensor' id='140552768372112'>, b: <Mock name='mock.Tensor' id='140552768372112'>)[source]

Scale tensor b to the same mean and standard deviation as tensor a.

Args:

a (torch.Tensor): Target tensor for scaling. b (torch.Tensor): Source tensor to be scaled.

Returns:

torch.Tensor: Scaled version of tensor b.