[PyTorch] Fix missing move in unpickler (#63974)
authorScott Wolchok <swolchok@fb.com>
Mon, 30 Aug 2021 16:34:24 +0000 (09:34 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Mon, 30 Aug 2021 16:38:55 +0000 (09:38 -0700)
commit16ecdbbaa2a24debae1c80b441bbea945d61d02d
treea5acae482e4425d2a6f6883a22f365ee50f17812
parent9777887f0ebe6403e19205eb1cafb81fe24606fb
[PyTorch] Fix missing move in unpickler (#63974)

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

Saw some time spent in this for model loading, no reason not to move here.
ghstack-source-id: 136760979

Test Plan: Re-profile model loading on devserver; IValue copy ctor time has gone down

Reviewed By: dhruvbird

Differential Revision: D30548923

fbshipit-source-id: 42000f2e18582762b43353cca10ae094833de3b3
torch/csrc/jit/serialization/unpickler.cpp