 on this tensor. Default: <code>false</code>.</li>
</ul>
<p>Example</p>
<pre><code class="language-javascript">&gt;&gt;&gt; let a = torch.randn([3,2], false, 'gpu');
&gt;&gt;&gt; console.log(a.data);
//[[1.001, 0.122],
// [-0.93, 0.125]
// [0.123,-0.001]]
</code></pre>
<p><br></p>
<h2 id="torchrand">torch.rand</h2>
<pre><code>torch.rand(*shape,
            requires_grad=false,
            device='cpu') → Tensor
</code></pre>
<p>Creates new instance of the Tensor class filled with numbers in a uniform dist