aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/distributed_runtime/rpc/grpc_remote_worker.cc
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/core/distributed_runtime/rpc/grpc_remote_worker.cc')
-rw-r--r--tensorflow/core/distributed_runtime/rpc/grpc_remote_worker.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/tensorflow/core/distributed_runtime/rpc/grpc_remote_worker.cc b/tensorflow/core/distributed_runtime/rpc/grpc_remote_worker.cc
index 79d3b3e2f6..60597aab26 100644
--- a/tensorflow/core/distributed_runtime/rpc/grpc_remote_worker.cc
+++ b/tensorflow/core/distributed_runtime/rpc/grpc_remote_worker.cc
@@ -132,8 +132,8 @@ class GrpcRemoteWorker : public WorkerInterface {
// the RecvTensor response can not have been sent before
// the RecvTensor request, and must have been sent before
// it was received.
- send_start_usec =
- std::max(start_usec, response->metadata().send_start_micros());
+ send_start_usec = std::max(start_usec, static_cast<int64>(
+ response->metadata().send_start_micros()));
send_start_usec = std::min(send_start_usec, end_usec - 1);
}
const string& key = request->rendezvous_key();