de>.</li>
<li><strong>device (string)</strong> - Device to store Tensor. Either "gpu" or "cpu". If your device has a gpu, large models will train faster on it.</li>
</ul>
<p>Example</p>
<pre><code class="language-javascript">&gt;&gt;&gt; let a = torch.randint(2, 5, [3,2], false, 'gpu');
&gt;&gt;&gt; console.log(a.data);
//[[4, 3],
// [2, 3],
// [3, 4]]
</code></pre>
<p><br></p>
<h2 id="tensorbackward">tensor.backward</h2>
<p>Performs backpropagation from this tensor backwards. It fills the gradients of ever