Skip to content

Commit

Permalink
Fix step count
Browse files Browse the repository at this point in the history
  • Loading branch information
Parzival-05 committed Feb 21, 2025
1 parent 17bc8ea commit c9728c8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions VSharp.ML.GameServer.Runner/Main.fs
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,8 @@ let runTrainingSendModelMode
(port: int)
=
printfn $"Run infer on {gameMap.MapName} have started."
let stepsToStart = gameMap.StepsToStart
let stepsToPlay = gameMap.StepsToPlay

let aiTrainingOptions =
{
Expand All @@ -363,8 +365,8 @@ let runTrainingSendModelMode

mapName = gameMap.MapName
}
stepsToSwitchToAI = gameMap.StepsToStart
stepsToPlay = gameMap.StepsToPlay
stepsToSwitchToAI = stepsToStart
stepsToPlay = stepsToPlay
oracle = None
}

Expand All @@ -391,6 +393,7 @@ let runTrainingSendModelMode
outputDirectory = outputDirectory,
searchStrategy = SearchStrategy.AI,
solverTimeout = SOLVER_TIMEOUT_FOR_TRAINING,
stepsLimit = uint (stepsToPlay + stepsToStart),
aiOptions = (Some aiOptions |> Option.defaultValue Unchecked.defaultof<_>),
pathToModel = pathToModel,
useGPU = useGPU,
Expand Down

0 comments on commit c9728c8

Please sign in to comment.