pytorch
b2758cdc - [PyTorch] Don't copy vector arguments to caffe2::Tensor::Resize (#53389)

Commit
3 years ago
[PyTorch] Don't copy vector arguments to caffe2::Tensor::Resize (#53389) Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/53389 Resize was written to take arguments by value, which was totally fine if they were ArrayRef or a series of integers, but not so fine if they're std::vector. ghstack-source-id: 123212128 Test Plan: Existing CI should make sure it builds Inspected assembly for ios_caffe.cc and saw no more vector copy before calling Resize Reviewed By: smessmer Differential Revision: D26852105 fbshipit-source-id: 9c3b9549d50d32923b532bbc60d0246e2c2b5fc7
Author
Parents
Loading