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

Method GetHostToDeviceChannelHandle

tensorflow/compiler/tf2xla/xla_compiler.cc:1324–1334  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1322}
1323
1324Status XlaCompiler::GetHostToDeviceChannelHandle(const string& key,
1325 xla::ChannelHandle* channel) {
1326 auto result = channels_.emplace(key, xla::ChannelHandle());
1327 if (result.second) {
1328 TF_ASSIGN_OR_RETURN(result.first->second,
1329 client()->CreateHostToDeviceChannelHandle());
1330 }
1331 *channel = result.first->second;
1332 VLOG(1) << "Host to device channel: " << key << " " << channel->DebugString();
1333 return Status::OK();
1334}
1335
1336Status XlaCompiler::GetDeviceToHostChannelHandle(const string& key,
1337 xla::ChannelHandle* channel) {

Callers

nothing calls this directly

Calls 4

TF_ASSIGN_OR_RETURNFunction · 0.50
emplaceMethod · 0.45
DebugStringMethod · 0.45

Tested by

no test coverage detected