[Python] How to get a uniform distribution in a range [r1,r2] in PyTorch?

Discussão em 'Python' iniciado por Stack, Março 5, 2025.

  1. Stack

    Stack Membro Participativo

    I want to get a 2-D torch.Tensor with size [a,b] filled with values from a uniform distribution (in range [r1,r2]) in PyTorch.

    Continue reading...

Compartilhe esta Página