aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/compiler/xla/service/service.cc
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/compiler/xla/service/service.cc')
-rw-r--r--tensorflow/compiler/xla/service/service.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/tensorflow/compiler/xla/service/service.cc b/tensorflow/compiler/xla/service/service.cc
index da3b622bfa..636013cbb5 100644
--- a/tensorflow/compiler/xla/service/service.cc
+++ b/tensorflow/compiler/xla/service/service.cc
@@ -169,7 +169,8 @@ Service::Service(const ServiceOptions& options,
Status Service::CreateChannelHandle(const CreateChannelHandleRequest* arg,
CreateChannelHandleResponse* result) {
- *result->mutable_channel() = channel_tracker_.NewChannel();
+ TF_ASSIGN_OR_RETURN(*result->mutable_channel(),
+ channel_tracker_.NewChannel(arg->channel_type()));
return Status::OK();
}