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

Method Undo

tensorflow/core/graph/graph_constructor.cc:1395–1402  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1393}
1394
1395void GraphConstructor::Undo() {
1396 for (const auto& iter : gdef_nodes_) {
1397 if (iter.second.node != nullptr) {
1398 g_->RemoveNode(iter.second.node);
1399 }
1400 }
1401 g_->set_versions(original_versions_);
1402}
1403
1404Status GraphConstructor::MakeEdge(Node* src, int output_index, Node* dst,
1405 int input_index) {

Callers 1

ConstructMethod · 0.80

Calls 2

set_versionsMethod · 0.80
RemoveNodeMethod · 0.45

Tested by

no test coverage detected