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

Method VerifyFDef

tensorflow/c/c_api_function_test.cc:353–365  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 1

GetFunctionDefFunction · 0.85

Tested by

no test coverage detected