Update manager.py
Browse files11 unmodified lines12131415161711 unmodified linesCKPT_PATH = "ckpt.zst"CKPT_FREQ = 100LOG_DIR = "logs"DEVICE = "cpu"MANAGER_HOST = "0.0.0.0"MANAGER_PORT = 786011 unmodified lines12131415161718192021222324252627282911 unmodified linesCKPT_PATH = "ckpt.zst"CKPT_FREQ = 100LOG_DIR = "logs"# Try main logs dirtry:os.makedirs(LOG_DIR, exist_ok=True)with open(os.path.join(LOG_DIR, "test_write"), "w") as f:f.write("ok")os.remove(os.path.join(LOG_DIR, "test_write"))except Exception:LOG_DIR = "/tmp/logs"os.makedirs(LOG_DIR, exist_ok=True)writer = SummaryWriter(LOG_DIR)DEVICE = "cpu"MANAGER_HOST = "0.0.0.0"MANAGER_PORT = 7860
manager.py+12