(exp_name)
| 60 | |
| 61 | |
| 62 | def 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 | |
| 67 | def initialize(args, entity, exp_name, project_name, wandb_dir): |