| 802 | } |
| 803 | |
| 804 | string DebugStringWhole(const GraphDef& gdef) { |
| 805 | string ret; |
| 806 | for (const auto& fdef : gdef.library().function()) { |
| 807 | strings::StrAppend(&ret, Print(fdef)); |
| 808 | } |
| 809 | strings::StrAppend(&ret, "\n"); |
| 810 | for (const auto& ndef : gdef.node()) { |
| 811 | strings::StrAppend(&ret, Print(ndef), "\n"); |
| 812 | } |
| 813 | return ret; |
| 814 | } |
| 815 | |
| 816 | namespace { |
| 817 |