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

Function ExtractNode

tensorflow/cc/profiler/profiler_test.cc:84–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82
83template <typename T>
84const T* ExtractNode(const T& pb, const string& name) {
85 if (pb.name() == name) {
86 return &pb;
87 }
88 for (const T& c : pb.children()) {
89 const T* ret = ExtractNode(c, name);
90 if (ret) return ret;
91 }
92 return nullptr;
93}
94
95TEST_F(ProfilerTest, Basics) {
96 SessionOptions options;

Callers 1

TEST_FFunction · 0.85

Calls 2

nameMethod · 0.65
childrenMethod · 0.45

Tested by

no test coverage detected