Can anyone help me out with how I can write a loss function to spread the output tensors of a network uniformly ? Let’s say my network gives a tensor [[x1] , [x2] , [x3] , …[xn]] . I want to spread these points evenly between 0 to 1 . How can i achieve this ?
P.S. I am sorry because I think this question is more suitable for Stack Overflow but I like the pytorch community here much better. So, I am asking this here.