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.
maybe,
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,