diff options
Diffstat (limited to 'tensorflow/core/common_runtime/copy_tensor.cc')
-rw-r--r-- | tensorflow/core/common_runtime/copy_tensor.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tensorflow/core/common_runtime/copy_tensor.cc b/tensorflow/core/common_runtime/copy_tensor.cc index 5dc8c33b2a..e55ef7d5ba 100644 --- a/tensorflow/core/common_runtime/copy_tensor.cc +++ b/tensorflow/core/common_runtime/copy_tensor.cc @@ -16,6 +16,7 @@ limitations under the License. #include "tensorflow/core/common_runtime/copy_tensor.h" #include <atomic> +#include <utility> #include <vector> #include "tensorflow/core/lib/core/errors.h" #include "tensorflow/core/platform/logging.h" @@ -26,7 +27,9 @@ namespace { struct RegistrationInfo { RegistrationInfo(DeviceType s, DeviceType r, CopyTensor::CopyFunction cf) - : sender_device_type(s), receiver_device_type(r), copy_function(cf) {} + : sender_device_type(std::move(s)), + receiver_device_type(r), + copy_function(cf) {} DeviceType sender_device_type; DeviceType receiver_device_type; CopyTensor::CopyFunction copy_function; |