Rename some BatchedTensorImpl APIs (#42700)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/42700
I was about to use `isBatched` somewhere not in the files used to
implement vmap but then realized how silly that sounds due to
ambiguity. This PR renames some of the BatchedTensor APIs to make a bit
more sense to onlookers.
- isBatched(Tensor) -> isBatchedTensor(Tensor)
- unsafeGetBatched(Tensor) -> unsafeGetBatchedImpl(Tensor)
- maybeGetBatched(Tensor) -> maybeGetBatchedImpl(Tensor)
Test Plan: - build Pytorch, run tests.
Reviewed By: ezyang
Differential Revision: D22985868
Pulled By: zou3519
fbshipit-source-id: b8ed9925aabffe98085bcf5c81d22cd1da026f46