aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/distributed_runtime/rpc/grpc_util.cc
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/core/distributed_runtime/rpc/grpc_util.cc')
-rw-r--r--tensorflow/core/distributed_runtime/rpc/grpc_util.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/tensorflow/core/distributed_runtime/rpc/grpc_util.cc b/tensorflow/core/distributed_runtime/rpc/grpc_util.cc
index fe66c7c570..f5d04549b4 100644
--- a/tensorflow/core/distributed_runtime/rpc/grpc_util.cc
+++ b/tensorflow/core/distributed_runtime/rpc/grpc_util.cc
@@ -80,9 +80,9 @@ grpc::protobuf::int64 GrpcByteBufferSource::ByteCount() const {
void GrpcUnparseProto(const protobuf::Message& src, grpc::ByteBuffer* dst) {
// TODO(sanjay): For bigger protos, serialize into a ZeroCopyOutputStream.
size_t len = src.ByteSizeLong();
- gpr_slice s = gpr_slice_malloc(len);
+ grpc_slice s = grpc_slice_malloc(len);
src.SerializeWithCachedSizesToArray(
- reinterpret_cast<uint8*>(GPR_SLICE_START_PTR(s)));
+ reinterpret_cast<uint8*>(GRPC_SLICE_START_PTR(s)));
::grpc::Slice slice(s, ::grpc::Slice::STEAL_REF);
::grpc::ByteBuffer buffer(&slice, 1);
// TODO(sanjay): Use Swap() when grpc version we are using is new enough.