How to transform a tensor to uniform distribution

I have a tensor in size [15, 28, 28]. I want to transform it to uniform distribution
U(0,1) with same size. What tool can I use? thanks.


import torch, seaborn as sns
x = torch.randn(15, 28, 28)
torch.nn.init.uniform_(x, a=0, b=1)
sns.distplot(x, kde=False)

we will get something like,

maybe I say not clearly. I have a distribution like this, and want to transform it in U(0,1) with same size.