MCPcopy
hub / github.com/snap-stanford/GraphGym / basic

Method basic

graphgym/logger.py:68–78  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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):

Callers 1

write_epochMethod · 0.95

Calls 2

time_iterMethod · 0.95
get_current_gpu_usageFunction · 0.90

Tested by

no test coverage detected