    

  
  


<h1 id="tensor">Tensor</h1>
<p>The Tensor is the main object of this library. In this section are listed all of the <strong>Tensor</strong> methods.</p>
<h2 id="torchtensor">torch.tensor</h2>
<pre><code>torch.tensor(data,
            requires_grad=false,
            device='cpu') → Tensor
</code></pre>
<p>Returns a tensor filled with the data in the argument <code>data</code>.</p>
<p>Parameters</p>
<ul>
<li><strong>data (Array)</strong> - Javascript Array containing the data to be stored in 