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

Function Rewrite

tensorflow/core/common_runtime/lower_while_op_test.cc:46–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46Status Rewrite(std::unique_ptr<Graph>* graph) {
47 FunctionLibraryDefinition flib_def((*graph)->flib_def());
48 GraphOptimizationPassOptions opt_options;
49 SessionOptions session_options = SessionOptionsWithInlining();
50 opt_options.session_options = &session_options;
51 opt_options.graph = graph;
52 opt_options.flib_def = &flib_def;
53 LowerFunctionalOpsPass pass;
54 return pass.Run(opt_options);
55}
56
57TEST(LowerWhileOpTest, Simple) {
58 std::unique_ptr<Graph> graph(new Graph(OpRegistry::Global()));

Callers 1

TESTFunction · 0.70

Calls 2

RunMethod · 0.45

Tested by

no test coverage detected