f this tensor's gradients. Set this to true if you want to <strong>learn</strong> this parameter in your model. Default: <code>false</code>.</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.ones([3,2], false, 'gpu');
&gt;&gt;&gt; console.log(a.data);
//[[1, 1],
// [1, 1]
// [1, 1]]
</code></pre>
<p><br></p>
<h2 i