ode>.</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.tril([4,3], false, 'gpu');
&gt;&gt;&gt; console.log(a.data);
//[[1, 0, 0],
// [1, 1, 0]
// [1, 1, 1]
// [1, 1, 1]]
&gt;&gt;&gt; let b = torch.tril([3,4], false, 'gpu');
&gt;&gt;&gt; console.log(b.data);
//[[1, 0, 0, 0],
// [1, 1, 0, 0]
// [1, 1, 1, 0]
</code>