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

Method ResetTotalStats

tensorflow/core/profiler/internal/tfprof_node_show.cc:115–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115void ShowNode::ResetTotalStats() {
116 formatted_str.clear();
117
118 mutable_proto()->set_total_definition_count(0);
119 mutable_proto()->set_total_run_count(0);
120 mutable_proto()->set_total_exec_micros(0);
121 mutable_proto()->set_total_accelerator_exec_micros(0);
122 mutable_proto()->set_total_cpu_exec_micros(0);
123
124 mutable_proto()->set_total_requested_bytes(0);
125 mutable_proto()->set_total_peak_bytes(0);
126 mutable_proto()->set_total_residual_bytes(0);
127 mutable_proto()->set_total_output_bytes(0);
128
129 mutable_proto()->set_total_parameters(0);
130 mutable_proto()->set_total_float_ops(0);
131 mutable_proto()->mutable_children()->Clear();
132}
133
134ShowMultiNode::ShowMultiNode(TFMultiGraphNode* node)
135 : node(node), account(false), show(false) {

Callers 9

ShowInternalMethod · 0.80
PrintGraphMethod · 0.80
AccountMethod · 0.80
ShowInternalMethod · 0.80
ShowInternalMethod · 0.80
AccountMethod · 0.80
ShowInternalMethod · 0.80
PrintScopeMethod · 0.80
AccountMethod · 0.80

Calls 2

clearMethod · 0.45
ClearMethod · 0.45

Tested by

no test coverage detected