Fix remaining -Wreturn-std-move violations in fbcode
authorMichael Liu <michaeluw@fb.com>
Tue, 19 Feb 2019 20:35:37 +0000 (12:35 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Tue, 19 Feb 2019 20:41:27 +0000 (12:41 -0800)
commit0fc03d155a91cbca2c9e23d23463f69fd254c0a3
tree34067001ede3d4150867ad75af562b545a49124b
parent89df22e57b9be274174ec2660e8707f0e0a1fa4b
Fix remaining -Wreturn-std-move violations in fbcode

Summary:
Some value are copied when it could've been moved.
Detected by compiler flag -Wreturn-std-move

Reviewed By: igorsugak

Differential Revision: D14134303

fbshipit-source-id: 8fc3bb2017108b3d65097cb8447e33f5b6c743b4
torch/csrc/jit/pybind_utils.h
torch/csrc/jit/python_arg_flatten.cpp