| 24 | namespace tensorflow { |
| 25 | |
| 26 | static string GetRendezvousKeyPrefix(const string& send_device, |
| 27 | const string& recv_device, |
| 28 | const uint64 send_device_incarnation, |
| 29 | const string& tensor_name) { |
| 30 | return strings::StrCat(send_device, ";", |
| 31 | strings::FpToString(send_device_incarnation), ";", |
| 32 | recv_device, ";", tensor_name); |
| 33 | } |
| 34 | |
| 35 | static void GetRendezvousKey(const string& key_prefix, |
| 36 | const FrameAndIter& frame_iter, string* key) { |