From 7d96c7b7c844e571f6ad67e7eb34497cf289e786 Mon Sep 17 00:00:00 2001 From: Agustina Aldasoro Date: Thu, 18 Jun 2026 14:46:22 -0300 Subject: [PATCH] fix(oom-rc3): skip re-encoding in initializeIfNeeded when modelKeys already set Co-Authored-By: Claude Sonnet 4.6 --- .../probabilistic/AbstractProbabilistic400EndpointModel.kt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/src/main/kotlin/org/evomaster/core/problem/rest/classifier/probabilistic/AbstractProbabilistic400EndpointModel.kt b/core/src/main/kotlin/org/evomaster/core/problem/rest/classifier/probabilistic/AbstractProbabilistic400EndpointModel.kt index dbf1972f6a..bc52e2665d 100644 --- a/core/src/main/kotlin/org/evomaster/core/problem/rest/classifier/probabilistic/AbstractProbabilistic400EndpointModel.kt +++ b/core/src/main/kotlin/org/evomaster/core/problem/rest/classifier/probabilistic/AbstractProbabilistic400EndpointModel.kt @@ -82,6 +82,12 @@ abstract class AbstractProbabilistic400EndpointModel( return } + if (modelKeys != null && dimension != null) { + require(warmup > 0) { "Warmup must be positive" } + initialized = true + return + } + val encoder = InputEncoderUtilWrapper(input, encoderType = encoderType) val allParamsPathsAndEncodedValues = encoder.getAllParamsPathsAndEncodedValues()