The question says it all. I want to get a 2-D torch.Tensor with size [a,b] filled with values from a uniform distribution (in range [r1,r2]
torch.Tensor
[a,b]
[r1,r2]
Please Can you try something like:
import torch as pt pt.empty(2,3).uniform_(5,10).type(pt.FloatTensor)