[Caffe2][easy] Avoid spurious vector copy in TransposeOp (#64403)
authorScott Wolchok <swolchok@fb.com>
Wed, 15 Sep 2021 22:12:29 +0000 (15:12 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Wed, 15 Sep 2021 22:15:51 +0000 (15:15 -0700)
commitfe0f9d1dafb9791cb08635636a01128850d17538
tree0938e66e94ffefa43675e8b029d61c7355109159
parent208cf051d4443a329a5c4ffbe05ff8f253ec23b8
[Caffe2][easy] Avoid spurious vector copy in TransposeOp (#64403)

Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/64403

No need to copy to the heap here.
ghstack-source-id: 138033019

Test Plan: CI

Reviewed By: smacke

Differential Revision: D30712506

fbshipit-source-id: 5f4131b2569ebb1f5092262aaddb17215dea88f1
caffe2/operators/transpose_op.h