(self, name=None)
| 155 | if not self._skip_sync: |
| 156 | torch_device_module.synchronize() |
| 157 | total_elapsed = time.perf_counter() - self.start_time |
| 158 | memory_suffix = self._end_memory_profile() |
| 159 | excluded = _get_excluded_time_stack().pop() |
| 160 | elapsed = total_elapsed - excluded |
| 161 | if self.enable_recorder and self.metrics_func: |
| 162 | if self.metrics_labels: |
| 163 | self.metrics_func.labels(*self.metrics_labels).observe(elapsed) |
| 164 | else: |
| 165 | self.metrics_func.observe(elapsed) |
nothing calls this directly
no test coverage detected