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

Method GetDeviceToHostChannelHandle

tensorflow/compiler/tf2xla/xla_compiler.cc:1336–1346  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1334}
1335
1336Status XlaCompiler::GetDeviceToHostChannelHandle(const string& key,
1337 xla::ChannelHandle* channel) {
1338 auto result = channels_.emplace(key, xla::ChannelHandle());
1339 if (result.second) {
1340 TF_ASSIGN_OR_RETURN(result.first->second,
1341 client()->CreateDeviceToHostChannelHandle());
1342 }
1343 *channel = result.first->second;
1344 VLOG(1) << "Device to host channel: " << key << " " << channel->DebugString();
1345 return Status::OK();
1346}
1347
1348namespace {
1349

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