Which torchvision version are you using?
It looks like this PR introduced the mean_vector argument followed by other PRs, which added it back to LinearTransformation instead of AffineTransformation.
Could you update torchvision and check it again?