From 136775e5db7e40a293cc21e7b02cee015d1aa7b0 Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" Date: Wed, 2 Oct 2019 11:04:01 -0700 Subject: [PATCH] Remove pessimizing std::move. PiperOrigin-RevId: 272475979 --- tensorflow/c/eager/c_api.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tensorflow/c/eager/c_api.cc b/tensorflow/c/eager/c_api.cc index 7e616e669c6..7c6c9431b09 100644 --- a/tensorflow/c/eager/c_api.cc +++ b/tensorflow/c/eager/c_api.cc @@ -388,7 +388,7 @@ tensorflow::Status UpdateTFE_ContextWithServerDef( &remote_device_mgr)); } else { ctx->context->ClearCaches(); - remote_device_mgr = std::move(ctx->context->ReleaseRemoteDeviceMgr()); + remote_device_mgr = ctx->context->ReleaseRemoteDeviceMgr(); if (remote_device_mgr == nullptr) { LOG_AND_RETURN_IF_ERROR(tensorflow::errors::InvalidArgument( "Updating context with invalid a valid set of remote devices."));