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