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

Method ReAccount

tensorflow/core/profiler/internal/tfprof_show.cc:121–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121bool TFShow::ReAccount(ShowNode* node, const Options& opts) {
122 node->ReInit(opts.step);
123 if (opts.account_type_regexes.size() == 1 &&
124 opts.account_type_regexes[0] == ".*") {
125 return true;
126 }
127 for (const string& regex : opts.account_type_regexes) {
128 for (const string& type : node->node->op_types()) {
129 if (RE2::FullMatch(type, regex)) {
130 return true;
131 }
132 }
133 }
134 return false;
135}
136
137string TFShow::FormatNodeMemory(ShowNode* node, int64 bytes,
138 int64 total_bytes) const {

Callers

nothing calls this directly

Calls 2

ReInitMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected