Add a control edge from each input to each recv.
| 158 | |
| 159 | // Add a control edge from each input to each recv. |
| 160 | void AddReadControl(const std::vector<NodeDef*>& recvs, |
| 161 | const std::vector<string>& inputs) { |
| 162 | for (NodeDef* recv : recvs) { |
| 163 | for (const string& input : inputs) { |
| 164 | recv->add_input(strings::StrCat("^", input)); |
| 165 | } |
| 166 | } |
| 167 | } |
| 168 | |
| 169 | void SetSendRecvAttrs(const PartitionOptions& opts, const Edge* edge, |
| 170 | NodeDefBuilder* builder) { |
no test coverage detected