| 1334 | } |
| 1335 | |
| 1336 | Status 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 | |
| 1348 | namespace { |
| 1349 |
nothing calls this directly
no test coverage detected