Where to find the real source code of torchvision

Sometimes, I found that some source code of pytorch are not listed in pytorch document website:https://pytorch.org/docs/stable/index.html
But I found a Github repo of pytorch here:https://github.com/pytorch
However, I think the source code in that repo is not the real source code or the latest version. Some attributes of some class cannot find in source code in that repo.
For examples, I can’t find attribute .train_labels in torchvision.dataset.ImageFloder class. But dataset.train_labels is availible which stores each img’s labels.

You are probably looking into the master branch of torchvision, which might differ from your current installed version.
A few weeks ago there was a small refactoring, which added permanent data and target variables instead of train_data etc.
Have a look at this diff.