| 113 | } |
| 114 | |
| 115 | void 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 | |
| 134 | ShowMultiNode::ShowMultiNode(TFMultiGraphNode* node) |
| 135 | : node(node), account(false), show(false) { |
no test coverage detected