MCPcopy
hub / github.com/apple/ml-4m / update

Method update

fourm/utils/logger.py:210–219  ·  view source on GitHub ↗
(self, metrics)

Source from the content-addressed store, hash-verified

208 self.step += 1
209
210 def update(self, metrics):
211 log_dict = dict()
212 for k, v in metrics.items():
213 if v is None:
214 continue
215 if isinstance(v, torch.Tensor):
216 v = v.item()
217 log_dict[k] = v
218
219 self.wandb_safe_log(log_dict, step=self.step)
220
221 def flush(self):
222 pass

Callers 15

mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.45
url_openerFunction · 0.45
train_one_epochFunction · 0.45
launch_evalsFunction · 0.45
eval_metricsFunction · 0.45
generateFunction · 0.45

Calls 1

wandb_safe_logMethod · 0.95

Tested by

no test coverage detected