Good afternoon,
I am using the function torch clamp to clip a tensor between its minimum and 1e-10, however it seems to be very slow, would it be an alternative to that? or a better way to do it ?
I am doing :

torch.clamp(dist,torch.min(dist),1e-10)