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

Method FormatTimes

tensorflow/core/profiler/internal/tfprof_show_multi.cc:221–238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219}
220
221std::vector<string> TFMultiShow::FormatTimes(const ShowMultiNode* node,
222 const Options& opts) const {
223 std::vector<string> attrs;
224 if (opts.select.find(kShown[1]) != opts.select.end()) {
225 attrs.push_back(FormatTotalExecTime(node, opts));
226 attrs.push_back(FormatAcceleratorExecTime(node, opts));
227 attrs.push_back(FormatCPUExecTime(node, opts));
228 }
229 if (opts.select.find(kShown[9]) != opts.select.end() &&
230 opts.select.find(kShown[1]) == opts.select.end()) {
231 attrs.push_back(FormatAcceleratorExecTime(node, opts));
232 }
233 if (opts.select.find(kShown[10]) != opts.select.end() &&
234 opts.select.find(kShown[1]) == opts.select.end()) {
235 attrs.push_back(FormatCPUExecTime(node, opts));
236 }
237 return attrs;
238}
239
240} // namespace tfprof
241} // namespace tensorflow

Callers

nothing calls this directly

Calls 6

FormatTotalExecTimeFunction · 0.85
FormatCPUExecTimeFunction · 0.70
findMethod · 0.45
endMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected