nn.Linear is using F.linear, which will call into addmm or matmul here and then deploy to the cublas method here.
nn.Linear
F.linear
addmm
matmul