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

Method Replace

tensorflow/compiler/jit/shape_inference_helpers.cc:52–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52Status BackEdgeHelper::Replace() {
53 if (graph_ == nullptr) {
54 return errors::Internal("BackEdgeHelper Replace called before Remove.");
55 }
56 if (replaced_) {
57 return errors::Internal("BackEdgeHelper Replace called more than once.");
58 }
59 replaced_ = true;
60 for (const BackEdge& be : back_edges_) {
61 graph_->AddEdge(be.src, be.src_output, be.dst, be.dst_input);
62 }
63 return Status::OK();
64}
65
66} // namespace tensorflow

Callers 2

InferShapesFunction · 0.45
StringMethod · 0.45

Calls 2

InternalFunction · 0.85
AddEdgeMethod · 0.45

Tested by

no test coverage detected