Recently I found out that after creating a pytorch tensor like following,
w = torch.randn(5,10)
I can initialize any number of arbitrary number of variables inside the tensor w
such as,
w.a = 1
w.b = 1.5 etc.
Can anyone point me to the use of such feature? Also if anyone can point me to the code snippet where the data structure of pytorch Tensor is defined, that will be really great! I wish to know more about it.
Thanks!
Varun