MCPcopy Create free account
hub / github.com/CompVis/zigma / generate_run_id

Function generate_run_id

wandb_utils.py:62–64  ·  view source on GitHub ↗
(exp_name)

Source from the content-addressed store, hash-verified

60
61
62def generate_run_id(exp_name):
63 # https://stackoverflow.com/questions/16008670/how-to-hash-a-string-into-8-digits
64 return str(int(hashlib.sha256(exp_name.encode("utf-8")).hexdigest(), 16) % 10**8)
65
66
67def initialize(args, entity, exp_name, project_name, wandb_dir):

Callers

nothing calls this directly

Calls 1

encodeMethod · 0.45

Tested by

no test coverage detected