| 351 | } |
| 352 | |
| 353 | void VerifyFDef(const std::unordered_set<string>& nodes, |
| 354 | const std::vector<IOSpec>& inputs, |
| 355 | const std::vector<IOSpec>& outputs, |
| 356 | const std::vector<EdgeSpec>& e_edges, // expected edges |
| 357 | const std::vector<EdgeSpec>& c_edges, // expected ctrl edges |
| 358 | bool is_exact_edges = true) { |
| 359 | tensorflow::FunctionDef fdef; |
| 360 | ASSERT_TRUE(GetFunctionDef(func_, &fdef)); |
| 361 | VerifyFDefNodes(fdef, nodes); |
| 362 | VerifyFDefInputs(fdef, inputs); |
| 363 | VerifyFDefOutputs(fdef, outputs); |
| 364 | VerifyFDefEdges(fdef, e_edges, c_edges, is_exact_edges); |
| 365 | } |
| 366 | |
| 367 | // Serialize func_ to fdef and import it back |
| 368 | void Reincarnate() { |
nothing calls this directly
no test coverage detected