title: where is torch.tensor.item() defined at the Github?
body: <p>I am torch Newbie.</p>
  <p>when I was learning torch tutorial like below,<br />
  I was curious about <strong>where tensor.item() is defined</strong>.</p>
  <pre class="lang-py prettyprint-override"><code>import torch
  a = torch.tensor([1])
  print( a.item() )  # it works without problem.
  </code></pre>
  <p>In order to find what i dont know,</p>
  <p><strong>First</strong>, I used VScode. but I got this.<br />
  <a href="https://i.stack.imgur.com/8z2BZ.png" rel="nofollow noreferrer">enter image description here</a><br />
  not like this<br />
  <a href="https://i.stack.imgur.com/HbSdG.png" rel="nofollow noreferrer">enter image description here</a></p>
  <p><strong>Second</strong>, I searched &quot;def item()&quot; at <a href="https://github.com/pytorch/pytorch/tree/master/torch" rel="nofollow noreferrer">the torch Github</a><br />
  But, I could not find. T^T</p>
  <p>Could you tell me where <a href="https://pytorch.org/docs/stable/tensors.html#torch.Tensor.item" rel="nofollow noreferrer">tensor.item()</a> is defined at <a href="https://github.com/pytorch/pytorch/tree/master/torch" rel="nofollow noreferrer">the Github</a>?</p>
  <p>Or</p>
  <p>where <a href="https://pytorch.org/docs/stable/tensors.html#torch.Tensor" rel="nofollow noreferrer">Class_torch.tensor's Menber functions(Method function)</a> are defined??</p>