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