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

Method Clear

tensorflow/core/grappler/utils/pattern_utils.h:119–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117 }
118
119 void Clear() {
120 for (NodeViewMatch& child : children) {
121 child.Clear(); // child is an object.
122 }
123 children.clear(); // children is a vector.
124 if (node_view != nullptr) {
125 node_view = nullptr;
126 }
127 }
128};
129
130template <MatchingDirection DIRECTION = MatchingDirection::kFollowInputs>

Callers 15

UpdatePlaceholderShapeFunction · 0.45
GetMatchedNodesMethod · 0.45
AddNodeMethod · 0.45
AddNewNodesMethod · 0.45
OptimizeAndPruneMethod · 0.45
OptimizeTwiceMethod · 0.45
OptimizeTwiceAndPruneMethod · 0.45
TEST_FFunction · 0.45
GetTensorProtoFunction · 0.45
TEST_FFunction · 0.45

Calls 1

clearMethod · 0.45

Tested by 6

OptimizeAndPruneMethod · 0.36
OptimizeTwiceMethod · 0.36
OptimizeTwiceAndPruneMethod · 0.36
TEST_FFunction · 0.36
GetTensorProtoFunction · 0.36
TEST_FFunction · 0.36