| 1311 | } |
| 1312 | |
| 1313 | Status XlaCompiler::GetChannelHandle(const string& key, |
| 1314 | xla::ChannelHandle* channel) { |
| 1315 | auto result = channels_.emplace(key, xla::ChannelHandle()); |
| 1316 | if (result.second) { |
| 1317 | TF_ASSIGN_OR_RETURN(result.first->second, client()->CreateChannelHandle()); |
| 1318 | } |
| 1319 | *channel = result.first->second; |
| 1320 | VLOG(1) << "Channel: " << key << " " << channel->DebugString(); |
| 1321 | return Status::OK(); |
| 1322 | } |
| 1323 | |
| 1324 | Status XlaCompiler::GetHostToDeviceChannelHandle(const string& key, |
| 1325 | xla::ChannelHandle* channel) { |
no test coverage detected