How does torch.empty calculate the values?
Every time I run torch.empty(5, 3) I get one of those two results:

&gt;&gt;&gt; torch.empty(5, 3)
tensor([[     0.0000,      0.0000,      0.0000],
        [     0.0000,      0.0000,      0.0000],
        [     0.0000,      0.0000,      0.0000],
        [     0.0000,     -0.0000,      0.0000],
        [     0.0000,      0.0000, -50716.6250]])
&gt;&gt;&gt; torch.empty(5, 3) 
tensor([[0.0000, 0.0000, 0.0000],
        [0.0000, 0.0000, 0.0000],
        [0.0000, 0.0000, 0.0000],
        [0.0000, 0.0000, 0.0000],
        [0.0000, 0.0000, 0.0000]])


I tried this multiple times and I still get one of those two results. I tried changing the size number -50716.6250 appeared again.

Are the values here random? Why are those numbers reoccurring?

torch.empty returns "a tensor filled with uninitialized data."

If you want to have a tensor filled with zeros, use torch.zeros.
