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

Function GetReceiverDevice

tensorflow/compiler/xrt/client/xrt_tf_client.cc:334–341  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

332}
333
334static std::string GetReceiverDevice(XrtTfContext* context,
335 int recv_device_id) {
336 if (recv_device_id < 0) {
337 return "/job:xrt_client/task:0/replica:0/device:CPU:0";
338 } else {
339 return context->devices().at(recv_device_id).name();
340 }
341}
342
343static std::string GetRendezvousKey(absl::string_view send_device,
344 absl::string_view recv_device,

Callers 2

RecvTensorMethod · 0.85
EnqueueSendFunction · 0.85

Calls 3

nameMethod · 0.65
atMethod · 0.45
devicesMethod · 0.45

Tested by

no test coverage detected