MCPcopy
hub / github.com/openai/improved-diffusion / logkv

Function logkv

improved_diffusion/logger.py:212–218  ·  view source on GitHub ↗

Log a value of some diagnostic Call this once for each diagnostic quantity, each iteration If called many times, last value will be used.

(key, val)

Source from the content-addressed store, hash-verified

210
211
212def logkv(key, val):
213 """
214 Log a value of some diagnostic
215 Call this once for each diagnostic quantity, each iteration
216 If called many times, last value will be used.
217 """
218 get_current().logkv(key, val)
219
220
221def logkv_mean(key, val):

Callers 1

logkvsFunction · 0.85

Calls 2

get_currentFunction · 0.85
logkvMethod · 0.80

Tested by

no test coverage detected