(self)
| 66 | |
| 67 | # basic properties |
| 68 | def basic(self): |
| 69 | stats = { |
| 70 | 'loss': round(self._loss / self._size_current, cfg.round), |
| 71 | 'lr': round(self._lr, cfg.round), |
| 72 | 'params': self._params, |
| 73 | 'time_iter': round(self.time_iter(), cfg.round), |
| 74 | } |
| 75 | gpu_memory = get_current_gpu_usage() |
| 76 | if gpu_memory > 0: |
| 77 | stats['gpu_memory'] = gpu_memory |
| 78 | return stats |
| 79 | |
| 80 | # customized input properties |
| 81 | def custom(self): |
no test coverage detected