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

Function GetRendezvousKey

tensorflow/core/common_runtime/direct_session.cc:179–186  ·  view source on GitHub ↗

TODO(vrv): Figure out how to unify the many different functions that generate RendezvousKey, since many of them have to be consistent with each other.

Source from the content-addressed store, hash-verified

177// that generate RendezvousKey, since many of them have to be
178// consistent with each other.
179string GetRendezvousKey(const string& tensor_name,
180 const DeviceAttributes& device_info,
181 const FrameAndIter& frame_iter) {
182 return strings::StrCat(device_info.name(), ";",
183 strings::FpToString(device_info.incarnation()), ";",
184 device_info.name(), ";", tensor_name, ";",
185 frame_iter.frame_id, ":", frame_iter.iter_id);
186}
187
188// TODO: Any better allocate policy?
189void AllocateVisibleCpusForSession(

Callers 1

CreateExecutorsMethod · 0.70

Calls 4

FpToStringFunction · 0.85
incarnationMethod · 0.80
nameMethod · 0.65
StrCatFunction · 0.50

Tested by

no test coverage detected