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

Method ResetInternal

tensorflow/core/grappler/utils/graph_view.cc:416–420  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

414}
415
416void Mutation::ResetInternal() {
417 std::vector<MutableNodeViewDiff>().swap(updated_nodes_);
418 std::vector<bool>(graph_view_->NumNodes()).swap(removed_nodes_);
419 std::vector<MutationNewNodeHolder>().swap(new_nodes_);
420}
421
422void Mutation::Reset() {
423 for (const auto& update : updated_nodes_) {

Callers 2

MutableGraphViewMethod · 0.80
ApplyMutationInternalMethod · 0.80

Calls 2

NumNodesMethod · 0.80
swapMethod · 0.45

Tested by

no test coverage detected