Solved by ptrblck in post #2 
              
              
                These are internal methods (marked via the underscore at the beginning), which repeat some arguments if necessary. 
E.g. for nn.Conv2d you can pass the kernel_size as a single integer or as a tuple. 
In the former case, the tuple will be created via _pair in this line of code. 
So it’s used for conv…