Tensor method rename ndim()->dim() - 2/3 (#16679)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/16679
Codemod generated with clangr shard mode, 25 files per diff,
Reviewed By: houseroad
Differential Revision: D13929450
fbshipit-source-id: fcc222744c28b41f2cedffc0c2ef5d04aceaa5af