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

Function SetInput

tensorflow/core/graph/graph_partition.cc:148–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146}
147
148void SetInput(NodeDef* dst, int dst_slot,
149 StringPiece src_name, int src_slot) {
150 if (src_slot == Graph::kControlSlot) {
151 dst->set_input(dst_slot, strings::StrCat("^", src_name));
152 } else if (src_slot == 0) {
153 dst->set_input(dst_slot, src_name.data(), src_name.size());
154 } else {
155 dst->set_input(dst_slot, strings::StrCat(src_name, ":", src_slot));
156 }
157}
158
159// Add a control edge from each input to each recv.
160void AddReadControl(const std::vector<NodeDef*>& recvs,

Callers 3

WriteAndReadBackMethod · 0.85
SetInputMethod · 0.85
DoFuseRecvFunction · 0.85

Calls 4

set_inputMethod · 0.80
StrCatFunction · 0.50
dataMethod · 0.45
sizeMethod · 0.45

Tested by 1

WriteAndReadBackMethod · 0.68