Can't find any reference when using torch api


(李志) #1

It’s useful to ‘Go to Declaration/Implementation’ when coding.But my torch returns nothing.like the Pic below.
Can not find any reference
I’ve changed many PC, nothing changes.
This makes me always searching on the website or official documentation, which is time comsuming.
Such things only occur when I use torch.XXX API, especially the tensor operation api, such as cat,index_select,view,expand,etc.
Other goto functions works well,such as torch.nn, etc.
Can anyone help me?Thx


(Alban D) #2

Hi,

These fonction are implemented in Cpp directly and so you can’t access their implementation from python.
That being said, they have proper documentation associated with them (__doc__ field), that you can access with ? torch.index_select in ipython for example.