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

Function SetSendRecvAttrs

tensorflow/core/graph/graph_partition.cc:169–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167}
168
169void SetSendRecvAttrs(const PartitionOptions& opts, const Edge* edge,
170 NodeDefBuilder* builder) {
171 builder->Attr("tensor_name",
172 strings::StrCat("edge_", edge->id(), "_", edge->src()->name()));
173 builder->Attr("send_device", edge->src()->assigned_device_name());
174 builder->Attr("send_device_incarnation",
175 static_cast<int64>(
176 opts.get_incarnation(edge->src()->assigned_device_name())));
177 builder->Attr("recv_device", edge->dst()->assigned_device_name());
178 builder->Attr("client_terminated", false);
179}
180
181void SetFuseRecvAttrs(const PartitionOptions& opts,
182 const std::vector<const Edge*>& edges,

Callers 2

AddSendFunction · 0.85
AddRecvFunction · 0.85

Calls 6

nameMethod · 0.65
StrCatFunction · 0.50
AttrMethod · 0.45
idMethod · 0.45
srcMethod · 0.45
dstMethod · 0.45

Tested by

no test coverage detected