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

Method DoCSE

tensorflow/core/graph/optimizer_cse_test.cc:89–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87 }
88
89 string DoCSE(const std::function<bool(const Node*)>& consider_fn = nullptr) {
90 string before = CanonicalGraphString(&graph_);
91 LOG(ERROR) << "Before rewrites: " << before;
92
93 OptimizeCSE(&graph_, consider_fn);
94
95 string result = CanonicalGraphString(&graph_);
96 LOG(ERROR) << "After rewrites: " << result;
97 return result;
98 }
99
100 const string& OriginalGraph() const { return original_; }
101

Callers

nothing calls this directly

Calls 1

OptimizeCSEFunction · 0.85

Tested by

no test coverage detected