MCPcopy Index your code
hub / github.com/MoonInTheRiver/DiffSinger / add_tqdm_metrics

Method add_tqdm_metrics

utils/pl_utils.py:938–943  ·  view source on GitHub ↗
(self, metrics)

Source from the content-addressed store, hash-verified

936 self.logger.save()
937
938 def add_tqdm_metrics(self, metrics):
939 for k, v in metrics.items():
940 if type(v) is torch.Tensor:
941 v = v.item()
942
943 self.tqdm_metrics[k] = v
944
945 def metrics_to_scalars(self, metrics):
946 new_metrics = {}

Callers 2

run_evaluationMethod · 0.95
optimizer_closureMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected