Hi Ptrblck,
I need to apply histogram I used

            xxx=torch.histc(CMBMASKGaussy,100, min=0, max=1, out=None)

But I need to know the bins elements too. How I can extract the bins elements from this function exactly as it is used?
As an another way I used
FFBins=[]
for jj1 in np.arange(0,1.03,.012):
     FFBins.append(jj1)

     hist_r = np.histogram(CMBMASKGaussy.squeeze(1).view(-1).detach().numpy(),bins=FFBins,range=[0 ,1])

            count_r = hist_r[0]         

            bins = hist_r[1]

why the number of the bins is one more than the count_r ? They should be same.I need to be precise, would you please help me with that which of them god to use?