What is the default distribution for pytorch Tensor

Can someone please tell me what is the default distribution for a Tensor?

if I write this code:

t = torch.Tensor(100, 100)

What is the distribution for t, normal distribution? Or uniform distribution? Thanks


By default the content is uninitialized. So the tensor will be filled with whatever was in the memory before.

1 Like

Ok, Thank you, Could you please tell me where did you find this? I googled a lot, but found nothing.The document did not seem to tell us how the tensor was initialized.

I am not sure it is stated explicitly in the doc.
The point is that unless you use a specific method to initialize it, it is uninitialized by default.

1 Like