Hello,
I am looking for a way to bin tensor values.
Say my tensor has values between -0.255 and +0.256, I am looking for a way to represent this will “less numbers”.
For example I would like to bin this range into 32 values so I will only have the values -0.255, -0.239, -0.223 and so on… (the bins are in jumps of 16 because 512/32=16)
I found torch.histc but it gives me only a histogram, this way I lose “which index was mapped to each bin”.
Thanks!