I am torch Newbie.
when I was learning torch tutorial like below,
I was curious about where tensor.item() is defined.
import torch
a = torch.tensor([1])
print( a.item() ) # it works without problem.
In order to find what i dont know,
First, I used VScode. but I got this.
enter image description here
not like this
enter image description here
Second, I searched "def item()" at the torch Github
But, I could not find. T^T
Could you tell me where tensor.item() is defined at the Github?
Or
where Class_torch.tensor's Menber functions(Method function) are defined??