<code class="language-javascript">&gt;&gt;&gt; let a = torch.tensor([[1,2,3],[4,5,6]], false, 'gpu');
&gt;&gt;&gt; console.log(a.data);
//[[1,2,3],
// [4,5,6]]
</code></pre>
<p><br></p>
<h2 id="torchzeros">torch.zeros</h2>
<pre><code>torch.zeros(*shape,
            requires_grad=false,
            device='cpu') → Tensor
</code></pre>
<p>Returns a tensor filled with zeros with dimensions like <code>shape</code>.</p>
<p>Parameters</p>
<ul>
<li><strong>shape (Array)</strong> - Javascript Array containing the