helper functions for constructing new subgraph
| 430 | protected: |
| 431 | // helper functions for constructing new subgraph |
| 432 | void add_input(NodeDef& ndef, const Edge* iedge) { |
| 433 | std::string input_name = strings::StrCat(iedge->src()->def().name(), |
| 434 | ":", iedge->src_output()); |
| 435 | ndef.add_input(input_name); |
| 436 | } |
| 437 | |
| 438 | void copy_attr(NodeDef& dst, const NodeDef& src) { |
| 439 | auto attr = src.attr(); |