Implementing transpose for PackedTensorAccessor (#61114)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/61114
Matching the functionality of THCDeviceTensor::transpose. This
is the same as PR 60968 (https://github.com/pytorch/pytorch/pull/60968)
which was already approved; the state of the PR got messed up so
creating a fresh one.
ghstack-source-id: 133050553
Test Plan:
Unit tests at aten/src/ATen/test/packedtensoraccessor_test.cpp
Imported from OSS
Reviewed By: ezyang
Differential Revision: D29516530
fbshipit-source-id: 91d5bcc38381c00420825646b1c352c0d6bc8b3f