fix(SAC_LSTM_Bot): startup sweep of stale .part checkpoint corpses (#57)
This commit is contained in:
@@ -52,6 +52,9 @@ echo "Weights: $SACLSTM_WEIGHTS_PATH"
|
||||
# ── compile bot + java runner ─────────────────────────────────────────────────
|
||||
(cd "$SCRIPT_DIR" && nimble build -d:release) || { echo ">>> bot build failed"; exit 1; }
|
||||
mkdir -p "$WEIGHTS_DIR" "$CLASSES_DIR"
|
||||
# Startup sweep: atomic saves leave sac_latest.zip.tmp.*.part corpses behind if
|
||||
# a run is SIGKILLed (libzip modify-path, see notebook forensics) — clear them.
|
||||
rm -f "$WEIGHTS_DIR"/sac_latest.zip.tmp.*.part "$WEIGHTS_DIR"/sac_latest.zip.tmp
|
||||
javac -cp "$JAR" -d "$CLASSES_DIR" "$RUNNER_DIR/RunTraining.java" || { echo ">>> javac failed"; exit 1; }
|
||||
|
||||
# ── weighted opponent pick over "Name:w,Name:w" ───────────────────────────────
|
||||
|
||||
Reference in New Issue
Block a user