[PyTorch] Fix SourceRangeDeserializer vector copy (#64031)
authorScott Wolchok <swolchok@fb.com>
Tue, 14 Sep 2021 21:18:55 +0000 (14:18 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Tue, 14 Sep 2021 21:20:45 +0000 (14:20 -0700)
commit452402b984fb92d278b5ccfc36b780365b632de8
treec1c908f79d0328da0f7dc5e3f3159a688907fe45
parent57eda692192ed4bcd291f09bf5b2e409c3031db6
[PyTorch] Fix SourceRangeDeserializer vector copy (#64031)

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

More copies of tuple elements.
ghstack-source-id: 137978948

Test Plan:
Pixel 3 before: https://our.intern.facebook.com/intern/aibench/details/724509739115867
Pixel 3 after: https://our.intern.facebook.com/intern/aibench/details/232361457767293

Top-line number doesn't seem to have moved, but we can see that the vector copy disappeared in the flame graph.

Reviewed By: raziel

Differential Revision: D30559545

fbshipit-source-id: e5343abae96b8e80e0ccec482ad316884ae231ea
torch/csrc/jit/serialization/source_range_serialization.cpp