MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / CreateChannelHandleByType

Method CreateChannelHandleByType

tensorflow/compiler/xla/client/client.cc:487–502  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

485}
486
487StatusOr<ChannelHandle> Client::CreateChannelHandleByType(
488 ChannelHandle::ChannelType type) {
489 CreateChannelHandleRequest request;
490 request.set_channel_type(type);
491 CreateChannelHandleResponse response;
492
493 VLOG(1) << "making create channel handle request";
494 Status s = stub_->CreateChannelHandle(&request, &response);
495 VLOG(1) << "done with request";
496
497 if (!s.ok()) {
498 return s;
499 }
500
501 return response.channel();
502}
503
504StatusOr<ChannelHandle> Client::CreateChannelHandle() {
505 return CreateChannelHandleByType(ChannelHandle::DEVICE_TO_DEVICE);

Callers

nothing calls this directly

Calls 2

CreateChannelHandleMethod · 0.45
okMethod · 0.45

Tested by

no test coverage detected